@apptegy/nuxt-navigation 0.1.45 → 0.1.46-alpha.0

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apptegy/nuxt-navigation",
3
3
  "configKey": "@apptegy/nuxt-navigation",
4
- "version": "0.1.45",
4
+ "version": "0.1.46-alpha.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "unknown"
@@ -1,41 +1,37 @@
1
1
  <template>
2
2
  <div class="help-btn-wrapper">
3
- <div
4
- ref="helpBtnActions"
5
- class="help-btn-actions"
6
- :class="{ expanded: expanded }"
7
- :style="{ 'max-height': `${expanded ? dropdownScrollHeight : 0}px` }"
3
+ <button
4
+ v-if="schoolWebsite"
5
+ :id="'school-website'"
6
+ class="help-articles-btn"
7
+ :aria-label="$t('navigation.website')"
8
+ @click="goToWebsite"
8
9
  >
9
- <button
10
- v-for="(option, idx) in helpArticleOptions"
11
- :id="`help-btn-${option.id}`"
12
- :key="idx"
13
- class="help-btn-action"
14
- >
15
- {{ option.text }}
16
- </button>
17
- </div>
10
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
11
+ <path d="M4 8H6.64922C6.87629 8 7.0966 7.92272 7.27391 7.78087L11.3753 4.49976C11.7405 4.20758 12.2595 4.20758 12.6247 4.49976L16.7261 7.78087C16.9034 7.92272 17.1237 8 17.3508 8H20M4 18H20M5 10V16M19 10V16M9 11V15M12 11V15M15 11V15M12.5 8.5V8.5C12.2239 8.77614 11.7761 8.77614 11.5 8.5V8.5C11.2239 8.22386 11.2239 7.77614 11.5 7.5V7.5C11.7761 7.22386 12.2239 7.22386 12.5 7.5V7.5C12.7761 7.77614 12.7761 8.22386 12.5 8.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
12
+ </svg>
13
+ </button>
18
14
  <button
15
+ v-if="showHelpArticles"
19
16
  :id="!isDropdown && 'help-btn'"
20
17
  :class="['help-articles-btn', !isDropdown && 'help-btn']"
21
18
  :aria-label="isDropdown ? $t('navigation.helpCenter') : $t('navigation.helpArticles')"
22
19
  @click="expandDropdown"
23
20
  >
24
- <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
25
- <path d="M15.0625 17.2451C14.9404 17.582 14.8745 18.041 14.8647 18.6221H16.2197C16.2197 17.8799 16.3979 17.311 16.7544 16.9155L17.5527 16.1245C18.3438 15.2944 18.7393 14.4521 18.7393 13.5977C18.7393 12.7334 18.4805 12.0547 17.9629 11.5615C17.4502 11.0635 16.7324 10.8145 15.8096 10.8145C14.9209 10.8145 14.1982 11.0586 13.6416 11.5469C13.0898 12.0303 12.8091 12.6675 12.7993 13.4585H14.1543C14.1543 13.0142 14.3057 12.6602 14.6084 12.3965C14.9111 12.1328 15.3115 12.001 15.8096 12.001C16.3223 12.001 16.7129 12.1475 16.9814 12.4404C17.25 12.7285 17.3843 13.1289 17.3843 13.6416C17.3843 14.1738 17.1792 14.6719 16.769 15.1357L15.8096 16.1245C15.4336 16.5347 15.1846 16.9082 15.0625 17.2451Z" fill="currentColor"/>
26
- <path d="M15.0039 20.3945C14.8721 20.541 14.8062 20.7241 14.8062 20.9438C14.8062 21.1636 14.8721 21.3467 15.0039 21.4932C15.1406 21.6348 15.3408 21.7056 15.6045 21.7056C15.8682 21.7056 16.0684 21.6348 16.2051 21.4932C16.3418 21.3467 16.4102 21.1636 16.4102 20.9438C16.4102 20.7241 16.3418 20.541 16.2051 20.3945C16.0684 20.2432 15.8682 20.1675 15.6045 20.1675C15.3408 20.1675 15.1406 20.2432 15.0039 20.3945Z" fill="currentColor"/>
27
- <path fill-rule="evenodd" clip-rule="evenodd" d="M26 16C26 21.5228 21.5228 26 16 26C10.4772 26 6 21.5228 6 16C6 10.4772 10.4772 6 16 6C21.5228 6 26 10.4772 26 16ZM24.75 16C24.75 20.8325 20.8325 24.75 16 24.75C11.1675 24.75 7.25 20.8325 7.25 16C7.25 11.1675 11.1675 7.25 16 7.25C20.8325 7.25 24.75 11.1675 24.75 16Z" fill="currentColor"/>
21
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
22
+ <path d="M10 10C10 8.89543 10.8954 8 12 8C13.1046 8 14 8.89543 14 10C14 10.7571 13.5793 11.4159 12.959 11.7555C12.4745 12.0207 12 12.4477 12 13V14M12 16V17M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
23
+ </svg>
24
+ </button>
25
+ <button
26
+ :id="!isDropdown && 'help-btn'"
27
+ :class="['help-articles-btn', !isDropdown && 'help-btn']"
28
+ :aria-label="$t('navigation.accountSettings')"
29
+ @click="goToSettings"
30
+ >
31
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
32
+ <path d="M17 18.3153L18.3487 16.958C18.5827 16.7213 18.6067 16.3487 18.4047 16.0833L17.4807 14.8713C17.6547 14.5393 17.798 14.1933 17.9087 13.8367L19.42 13.6387C19.752 13.5953 20 13.3127 20 12.978V11.022C20 10.6873 19.752 10.404 19.42 10.3613L17.9 10.162C17.784 9.796 17.6347 9.44133 17.4533 9.10267L18.3773 7.874C18.578 7.608 18.5513 7.23533 18.3153 7.00067L16.958 5.652C16.72 5.41667 16.3473 5.39333 16.084 5.59333L14.8473 6.536C14.5187 6.36533 14.178 6.22467 13.8267 6.116L13.6393 4.586C13.5987 4.25133 13.3153 4 12.978 4H11.022C10.6867 4 10.404 4.24867 10.3613 4.58067L10.1613 6.11733C9.79533 6.23067 9.442 6.37733 9.10333 6.55667L7.87733 5.624C7.612 5.422 7.23667 5.448 7.00067 5.68533L5.65267 7.042C5.416 7.28133 5.39333 7.658 5.6 7.92333L6.53267 9.11533C6.35133 9.45333 6.204 9.80533 6.08933 10.1693L4.58267 10.3607C4.24933 10.4033 4 10.686 4 11.022V12.978C4 13.3147 4.25067 13.5973 4.584 13.6393L6.07867 13.8253C6.192 14.1933 6.34067 14.55 6.52267 14.8933L5.61667 16.134C5.42267 16.4 5.45133 16.768 5.68533 17.0007L7.04333 18.348C7.27933 18.582 7.65 18.6073 7.91467 18.4073L9.13533 17.486C9.466 17.6593 9.81133 17.8007 10.166 17.9107L10.3607 19.4187C10.4033 19.7513 10.6867 20 11.022 20H12.978C13.312 20 13.5947 19.7527 13.6387 19.4213L13.84 17.9053C14.2027 17.7933 14.5533 17.6473 14.89 17.4687L16.1313 18.382C16.3987 18.5773 16.7667 18.5493 17 18.3153Z" stroke="currentColor"/>
33
+ <circle cx="12" cy="12" r="3" stroke="currentColor"/>
28
34
  </svg>
29
- <span v-if="expandedSidebar">
30
- {{ isDropdown ? $t('navigation.helpCenter') : $t('navigation.helpArticles') }}
31
- </span>
32
- <img
33
- v-if="isDropdown && !hasArticles"
34
- class="caret-icon"
35
- :class="{ collapse: !expanded }"
36
- src="../../assets/img/navbar-up.svg"
37
- alt=""
38
- >
39
35
  </button>
40
36
  </div>
41
37
  </template>
@@ -46,10 +42,16 @@ import { ref, computed, onMounted } from 'vue'
46
42
 
47
43
  interface IHelpArticlesProps {
48
44
  helpArticleOptions: Array<unknown>;
45
+ settingsRoute: string;
46
+ schoolWebsite: string;
47
+ showHelpArticles: boolean;
49
48
  };
50
49
 
51
50
  const props = withDefaults(defineProps<IHelpArticlesProps>(), {
52
51
  helpArticleOptions: () => [],
52
+ settingsRoute: '',
53
+ schoolWebsite: '',
54
+ showHelpArticles: false,
53
55
  })
54
56
 
55
57
  const { state: expandedSidebar } = useSidebar();
@@ -71,24 +73,31 @@ function expandDropdown() {
71
73
  expanded.value = !expanded.value;
72
74
  };
73
75
 
76
+ function goToSettings() {
77
+ window.location.replace(`${props.settingsRoute}`);
78
+ };
79
+
80
+ function goToWebsite() {
81
+ window.open(`${props.schoolWebsite}`);
82
+ };
83
+
74
84
  </script>
75
85
 
76
86
  <style scoped>
77
87
  .help-btn-wrapper {
78
- box-shadow: inset 0px -1px 0px 0px var(--nav-border-colors, var(--purple-65));
79
88
  display: flex;
80
- flex-direction: column;
89
+ flex-direction: row;
81
90
  align-items: center;
91
+ justify-content: flex-start;
82
92
  width: 100%;
83
93
  text-transform: uppercase;
84
94
  }
85
95
  .help-btn-wrapper .help-articles-btn {
86
96
  cursor: pointer;
87
97
  display: flex;
88
- width: 100%;
89
98
  align-items: center;
90
99
  background: none;
91
- padding: 8px 10px 8px 16px;
100
+ padding: 10px 0px 10px 8px;
92
101
  border: none;
93
102
  text-transform: inherit;
94
103
  }
@@ -104,7 +113,6 @@ function expandDropdown() {
104
113
  }
105
114
  .help-btn-wrapper .help-btn-actions {
106
115
  visibility: hidden;
107
- width: 100%;
108
116
  max-height: 0px;
109
117
  overflow-y: hidden;
110
118
  transition: all 0.5s ease-in-out;
@@ -121,7 +129,6 @@ function expandDropdown() {
121
129
  color: var(--nav-text-color, var(--primary-white));
122
130
  cursor: pointer;
123
131
  font-size: 14px;
124
- width: 100%;
125
132
  text-align: left;
126
133
  position: relative;
127
134
  padding: 6px 51px 6px 45px;
@@ -145,9 +152,8 @@ function expandDropdown() {
145
152
  transform: rotate(0.5turn);
146
153
  }
147
154
  .help-btn-wrapper svg {
148
- background: var(--nav-icon-background, rgb(80, 71, 100));
149
155
  border-radius: 4px;
150
- color: var(--nav-icon-color, var(--eggplant-30));
156
+ color: var(--nav-icon-color, #662E80);
151
157
  }
152
158
  .help-btn-wrapper span {
153
159
  color: var(--nav-text-color, var(--primary-white));
@@ -1,13 +1,18 @@
1
1
  <template>
2
- <svg width="160" height="30" viewBox="0 0 160 30" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path d="M60.9906 6.78871C61.8265 6.30075 62.8356 6.03796 64.0397 6.03796C65.1978 6.03796 66.2423 6.26559 67.1739 6.72065C68.1049 7.1759 68.9053 7.8074 69.5756 8.61496C70.2452 9.42299 70.7563 10.3958 71.1086 11.5335C71.4605 12.6717 71.6367 13.9228 71.6367 15.2884C71.6367 16.6993 71.4547 17.9796 71.0916 19.1284C70.7279 20.2777 70.2112 21.2506 69.5414 22.0466C68.8713 22.8435 68.0707 23.458 67.1397 23.89C66.2082 24.322 65.1862 24.5385 64.0736 24.5385C62.8473 24.5385 61.9207 24.3739 60.9967 23.9109C60.9967 23.9109 60.079 23.5431 59.0317 22.4739H58.9635V30H54.5205V6.51553H58.7931V8.42128H58.8953C58.8954 8.42128 59.7499 7.51303 60.9906 6.78871ZM63.3763 20.8265C64.5466 20.8265 65.4755 20.3512 66.1624 19.4011C66.849 18.4506 67.1925 17.1192 67.1925 15.4058C67.1925 13.6935 66.8829 12.297 66.2638 11.2174C65.6443 10.1382 64.6258 9.59821 63.2074 9.59821C62.4864 9.59821 61.8733 9.75121 61.3667 10.0557C60.8602 10.3612 60.4433 10.7717 60.1172 11.2877C59.7905 11.8042 59.5541 12.4204 59.408 13.1359C59.2613 13.8518 59.1885 14.6086 59.1885 15.406C59.1885 17.049 59.543 18.3629 60.2522 19.3483C60.9615 20.3337 62.0026 20.8265 63.3763 20.8265Z" :fill="fillColor"/>
4
- <path d="M80.2101 6.78871C81.046 6.30075 82.055 6.03796 83.2591 6.03796C84.4173 6.03796 85.4618 6.26559 86.3934 6.72065C87.3244 7.1759 88.1248 7.8074 88.795 8.61496C89.4647 9.42299 89.9758 10.3958 90.328 11.5335C90.68 12.6717 90.8561 13.9228 90.8561 15.2884C90.8561 16.6993 90.6741 17.9796 90.3111 19.1284C89.9474 20.2777 89.4306 21.2506 88.7609 22.0466C88.0909 22.8435 87.2902 23.458 86.3592 23.89C85.4276 24.322 84.4057 24.5385 83.2931 24.5385C82.0668 24.5385 81.1402 24.3739 80.2161 23.9109C80.2161 23.9109 79.2984 23.5431 78.2511 22.4739H78.1829V30H73.74V6.51553H78.0125V8.42128H78.1148C78.1148 8.42128 78.9693 7.51303 80.2101 6.78871ZM82.5957 20.8265C83.766 20.8265 84.6948 20.3512 85.3818 19.4011C86.0684 18.4506 86.4119 17.1192 86.4119 15.4058C86.4119 13.6935 86.1023 12.297 85.4831 11.2174C84.8637 10.1382 83.8451 9.59821 82.4268 9.59821C81.7058 9.59821 81.0927 9.75121 80.5861 10.0557C80.0795 10.3612 79.6627 10.7717 79.3366 11.2877C79.0099 11.8042 78.7735 12.4204 78.6274 13.1359C78.4807 13.8518 78.4079 14.6086 78.4079 15.406C78.4079 17.049 78.7624 18.3629 79.4716 19.3483C80.181 20.3337 81.222 20.8265 82.5957 20.8265Z" :fill="fillColor"/>
5
- <path d="M145.15 26.1086H146.268C147.199 26.1086 147.863 25.8922 148.261 25.4602C148.658 25.0277 148.857 24.4473 148.857 23.7193C148.857 23.492 148.834 23.2359 148.789 22.9513C148.743 22.667 148.669 22.3426 148.567 21.9785C148.465 21.6146 148.329 21.188 148.159 20.6985C147.988 20.2093 147.778 19.635 147.529 18.9746L142.827 6.51553H147.699L150.288 14.4006C150.424 14.8103 150.554 15.2369 150.68 15.6808C150.804 16.1244 150.924 16.5399 151.037 16.9267C151.151 17.3591 151.276 17.7916 151.412 18.2236H151.48C151.571 17.7916 151.673 17.3591 151.787 16.9267C151.877 16.54 151.985 16.1244 152.11 15.6808C152.235 15.2369 152.366 14.8103 152.502 14.4006L154.955 6.51553H159.622L153.524 24.4702C153.183 25.4483 152.837 26.2735 152.485 26.9451C152.133 27.6158 151.872 28.162 151.407 28.5833C150.941 29.0042 150.396 29.3055 149.771 29.488C149.146 29.6698 148.391 29.761 147.506 29.761H143.745L145.15 26.1086Z" :fill="fillColor"/>
6
- <path d="M117.362 18.8106C117.112 19.4677 116.716 19.9888 116.173 20.3741C115.628 20.7613 114.901 20.9545 113.992 20.9545C112.675 20.9545 111.647 20.5678 110.909 19.7938C110.171 19.0204 109.711 17.9506 109.53 16.5853H122.203C122.203 15.0152 122.015 13.5872 121.641 12.3014C121.266 11.0162 120.715 9.90665 119.988 8.97318C119.261 8.04037 118.364 7.31765 117.297 6.80568C116.229 6.29371 114.991 6.03796 113.584 6.03796C112.311 6.03796 111.148 6.27675 110.092 6.7545C109.035 7.23253 108.127 7.88109 107.366 8.70018C106.605 9.51946 106.015 10.4924 105.595 11.6186C105.174 12.745 104.964 13.9567 104.964 15.2538C104.964 16.551 105.163 17.7688 105.561 18.9062C105.958 20.0443 106.543 21.0283 107.315 21.8588C108.087 22.6898 109.035 23.3438 110.16 23.8216C111.284 24.2993 112.573 24.5384 114.026 24.5384C115.139 24.5384 116.15 24.3847 117.059 24.0775C117.967 23.7704 118.756 23.3555 119.426 22.8318C120.096 22.3087 120.641 21.6999 121.061 21.0055C121.35 20.5293 121.572 20.0328 121.737 19.5187L117.362 18.8106ZM110.858 10.6287C111.493 9.95793 112.425 9.62193 113.651 9.62193C114.719 9.62193 115.588 9.96909 116.258 10.6631C116.927 11.3575 117.297 12.2618 117.365 13.3765H109.598C109.802 12.2162 110.222 11.3002 110.858 10.6287Z" :fill="fillColor"/>
7
- <path d="M131.547 6.03787C130.434 6.03787 129.418 6.23718 128.498 6.63496C127.578 7.03359 126.783 7.60781 126.113 8.35884C125.443 9.10987 124.921 10.0144 124.546 11.0725C124.172 12.1307 123.984 13.3081 123.984 14.6053C123.984 15.9253 124.205 17.103 124.648 18.1385C125.091 19.1741 125.67 20.0496 126.386 20.7666C127.101 21.4834 127.919 22.0296 128.839 22.4051C129.759 22.7806 130.706 22.9683 131.684 22.9683C131.684 22.9683 134.335 23.1772 136.248 21.2821H136.351V22.8318C136.351 25.2665 135.056 26.4842 132.467 26.4842C131.377 26.4842 130.565 26.2963 130.031 25.921C129.527 25.5668 129.186 25.1338 128.997 24.6278L124.958 26.3515C125.426 27.2226 126.12 27.9561 126.976 28.5491C128.373 29.5161 130.502 30 132.909 30C134.204 30 135.17 29.8404 136.26 29.5219C137.35 29.2031 138.258 28.7028 138.985 28.0201C139.644 27.4281 140.007 26.7001 140.371 25.8356C140.734 24.9704 140.916 23.9242 140.916 22.6953V6.51552H136.453V8.09071H136.385C134.894 5.86406 131.547 6.03787 131.547 6.03787ZM136.351 16.3462C136.191 16.9155 135.947 17.4163 135.618 17.8483C135.289 18.2808 134.863 18.6221 134.341 18.8722C133.818 19.1229 133.193 19.2475 132.467 19.2475C131.263 19.2475 130.304 18.8381 129.588 18.0189C128.873 17.1996 128.515 16.039 128.515 14.5372C128.515 13.0582 128.873 11.8916 129.588 11.0384C130.304 10.1851 131.252 9.75834 132.433 9.75834C133.137 9.75834 133.75 9.88368 134.273 10.1339C134.795 10.3846 135.226 10.7258 135.567 11.1578C135.908 11.5903 136.164 12.0965 136.334 12.6769C136.504 13.257 136.589 13.8662 136.589 14.503C136.589 15.1632 136.509 15.7777 136.351 16.3462Z" :fill="fillColor"/>
8
- <path d="M94.6873 0V6.36891H92.1914V10.3194H94.6873V19.4389C94.6873 19.4389 94.5194 23.0661 98.2874 24.0014C101.188 24.6844 104.383 23.4487 104.383 23.4487L102.771 19.2945C102.771 19.2945 99.2184 21.0497 99.2184 17.8761C99.2184 14.55 99.2184 10.3195 99.2184 10.3195L102.853 10.2931L104.383 6.369H99.2184V0H94.6873Z" :fill="fillColor"/>
9
- <path d="M51.5358 21.4676V12.5586L51.5339 12.5642V12.5575C51.5339 10.5095 50.9603 8.92239 49.8138 7.7958C48.6664 6.6692 46.787 6.10614 44.1755 6.10614C42.9034 6.10614 41.802 6.2657 40.871 6.58417C39.9395 6.90292 39.1676 7.32377 38.5546 7.84689C37.941 8.37077 37.4754 8.9793 37.1577 9.67305C37.0622 9.88164 36.9843 10.095 36.9153 10.3107L40.5799 11.8747H40.7687C40.8369 11.033 41.1435 10.4126 41.6888 10.0146C42.2337 9.61652 43.0511 9.41692 44.1415 9.41692C45.1177 9.41692 45.8501 9.6048 46.3389 9.98008C46.8268 10.3558 47.0713 10.8623 47.0713 11.499C47.0713 12.1595 46.7308 12.6033 46.0491 12.8302C45.3679 13.0581 44.3002 13.2741 42.8467 13.4789C41.87 13.6154 40.9562 13.8031 40.1043 14.0421C39.2529 14.2811 38.5084 14.617 37.8728 15.0491C37.2368 15.4817 36.7369 16.0278 36.3738 16.6876C36.0103 17.3478 35.8289 18.1553 35.8289 19.1109C35.8289 20.8636 36.3963 22.1948 37.5322 23.1045C38.6677 24.0151 40.1327 24.4701 41.9271 24.4701C41.9271 24.4701 43.1162 24.4701 44.202 24.2948C45.516 24.0522 46.754 23.3524 47.5116 22.5742L47.6843 24.0602H47.6864L47.6861 24.0613H52.149V23.8907C51.7402 23.5956 51.5358 22.7875 51.5358 21.4676ZM47.1736 17.8825C47.1736 18.315 47.0825 18.7303 46.9011 19.1284C46.7189 19.5267 46.4522 19.8794 46.1005 20.1865C45.7479 20.4937 45.3168 20.7444 44.8058 20.9373C44.2949 21.131 43.7097 21.2275 43.0511 21.2275C42.2337 21.2275 41.5746 21.0626 41.0753 20.7326C40.5754 20.4029 40.326 19.828 40.326 19.0088C40.326 18.1897 40.621 17.5982 41.2119 17.2337C41.8019 16.87 42.7104 16.5511 43.937 16.2781C44.5275 16.1413 45.1122 15.9996 45.6918 15.8512C46.2708 15.7038 46.7648 15.5048 47.1735 15.2541V17.8825H47.1736Z" :fill="fillColor"/>
10
- <path d="M15.1075 0C6.76369 0 0 6.77691 0 15.1371C0 22.3661 5.85273 28.3827 12.6579 29.8851C12.8083 29.9182 12.9036 29.7331 12.7895 29.6293C8.46026 25.6903 5.36159 19.4008 5.2363 15.6519C5.20019 14.571 5.48865 13.7126 5.9666 12.8605C6.87457 11.2425 7.90989 9.69272 8.75761 8.04544C9.69422 6.22584 10.3925 5.98941 12.2764 5.93878C14.1382 5.88863 16.0027 5.93756 17.8652 5.92509C19.9026 5.91141 20.5702 6.33375 21.5648 8.14978C22.5969 10.0327 23.5348 11.2176 24.5722 13.0973C25.2731 14.3658 25.2043 15.9127 24.5007 17.1737C23.6155 18.7633 21.6269 22.0862 21.4613 22.4098C20.6142 24.0712 19.6315 24.4122 17.8205 24.4632C17.4187 24.4739 16.5983 24.4714 16.1971 24.4632C15.1623 24.4392 14.2504 24.9263 13.6369 25.8412C12.5681 27.4342 14.1449 30.1178 16.175 29.996C24.0494 29.517 30.2149 23.1723 30.2149 15.1371C30.2149 6.77691 23.4512 0 15.1075 0Z" fill="#F5897F"/>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="134" height="25" viewBox="0 0 134 25" fill="none">
3
+ <mask id="mask0_2059_16622" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="134" height="25">
4
+ <path d="M134 0H0V24.8166H134V0Z" fill="white"/>
5
+ </mask>
6
+ <g mask="url(#mask0_2059_16622)">
7
+ <path d="M51.0852 5.60941C51.7678 5.21888 52.63 5.00586 53.6359 5.00586C54.6418 5.00586 55.4681 5.18337 56.2584 5.57391C57.0488 5.96444 57.6954 6.46148 58.2702 7.13604C58.845 7.81059 59.2761 8.59166 59.5635 9.55024C59.8509 10.5088 59.9946 11.5384 59.9946 12.639C59.9946 13.7396 59.8509 14.8757 59.5276 15.7988C59.2402 16.7573 58.7732 17.5384 58.2343 18.213C57.6595 18.8875 57.0128 19.3846 56.2225 19.7396C55.4321 20.0946 54.5699 20.2721 53.6718 20.2721C52.7737 20.2721 51.8756 20.1301 51.0852 19.7396C51.0852 19.7396 50.3308 19.4201 49.4327 18.568H49.3608V24.781H45.6246V5.36089H49.2171V6.92302H49.289C49.289 6.92302 50.0075 6.17746 51.0493 5.57391L51.0852 5.60941ZM53.0611 17.2189C54.0311 17.2189 54.8214 16.8283 55.3962 16.0473C55.971 15.2662 56.2584 14.1656 56.2584 12.7455C56.2584 11.3254 56.0069 10.1893 55.4681 9.26621C54.9651 8.37864 54.1029 7.9171 52.9174 7.9171C51.7319 7.9171 51.8037 8.05912 51.3726 8.30764C50.9415 8.55616 50.5823 8.91119 50.3308 9.33722C50.0434 9.76326 49.8638 10.2603 49.7201 10.8638C49.6123 11.4674 49.5404 12.0709 49.5404 12.7455C49.5404 14.0946 49.8278 15.1952 50.4386 16.0118C51.0493 16.8283 51.9115 17.2189 53.0611 17.2189Z" fill="#503462"/>
8
+ <path d="M67.1796 5.60941C67.8622 5.21888 68.7244 5.00586 69.7303 5.00586C70.7362 5.00586 71.5624 5.18337 72.3528 5.57391C73.1431 5.96444 73.7898 6.46148 74.3646 7.13604C74.9394 7.81059 75.3705 8.59166 75.6579 9.55024C75.9453 10.5088 76.089 11.5384 76.089 12.639C76.089 13.7396 75.9453 14.8757 75.6219 15.7988C75.3345 16.7573 74.8675 17.5384 74.3286 18.213C73.7538 18.8875 73.1072 19.3846 72.3168 19.7396C71.5265 20.0946 70.6643 20.2721 69.7662 20.2721C68.8681 20.2721 67.9699 20.1301 67.1796 19.7396C67.1796 19.7396 66.4252 19.4201 65.527 18.568H65.4552V24.781H61.719V5.36089H65.3115V6.92302H65.3833C65.3833 6.92302 66.1018 6.17746 67.1437 5.57391L67.1796 5.60941ZM69.1914 17.2189C70.1614 17.2189 70.9517 16.8283 71.5265 16.0473C72.1013 15.2662 72.3887 14.1656 72.3887 12.7455C72.3887 11.3254 72.1372 10.1893 71.5983 9.26621C71.0954 8.37864 70.2332 7.9171 69.0477 7.9171C67.8622 7.9171 67.934 8.05912 67.5029 8.30764C67.0718 8.55616 66.7126 8.91119 66.4611 9.33722C66.1737 9.76326 65.9941 10.2603 65.8504 10.8638C65.7426 11.4674 65.6707 12.0709 65.6707 12.7455C65.6707 14.0946 65.9581 15.1952 66.5689 16.0118C67.1796 16.8283 68.0418 17.2189 69.1914 17.2189Z" fill="#503462"/>
9
+ <path d="M121.57 21.5857H122.504C123.294 21.5857 123.833 21.4082 124.157 21.0531C124.48 20.6981 124.66 20.2011 124.66 19.5975C124.66 18.994 124.66 19.207 124.588 18.9585C124.552 18.71 124.48 18.4614 124.408 18.1419C124.336 17.8579 124.193 17.5029 124.049 17.0768C123.905 16.6863 123.726 16.1892 123.51 15.6567L119.558 5.36084H123.654L125.809 11.8934C125.917 12.2484 126.025 12.5679 126.132 12.9585C126.24 13.3135 126.348 13.6685 126.42 13.9881C126.528 14.3431 126.635 14.6981 126.743 15.0531H126.815C126.887 14.6981 126.959 14.3431 127.067 13.9881C127.138 13.6685 127.246 13.3135 127.354 12.9585C127.462 12.6034 127.569 12.2484 127.677 11.8934L129.725 5.36084H133.641L128.539 20.2011C128.252 21.0176 127.965 21.6922 127.677 22.2602C127.39 22.8283 127.174 23.2543 126.779 23.6094C126.384 23.9644 125.917 24.2129 125.414 24.3549C124.875 24.4969 124.264 24.5679 123.51 24.5679H120.349L121.534 21.5502L121.57 21.5857Z" fill="#503462"/>
10
+ <path d="M98.2906 15.5501C98.075 16.0826 97.7517 16.5087 97.2847 16.8282C96.8177 17.1477 96.2069 17.3252 95.4525 17.3252C94.3388 17.3252 93.4766 17.0057 92.8659 16.3667C92.2552 15.7276 91.86 14.84 91.7163 13.7039H102.314C102.314 12.3903 102.17 11.2187 101.847 10.1536C101.524 9.08856 101.057 8.16548 100.446 7.38442C99.8354 6.60335 99.0809 5.9998 98.1828 5.60927C97.2847 5.18323 96.2429 4.97021 95.0573 4.97021C93.8718 4.97021 93.0096 5.18323 92.1474 5.57376C91.2493 5.9643 90.4949 6.49684 89.8482 7.1714C89.2016 7.84595 88.6986 8.66252 88.3753 9.5856C88.0161 10.5087 87.8364 11.5028 87.8364 12.6034C87.8364 13.7039 88.016 14.698 88.3394 15.6211C88.6627 16.5797 89.1656 17.3607 89.8123 18.0708C90.4589 18.7454 91.2493 19.3134 92.1833 19.7039C93.1174 20.0945 94.1951 20.3075 95.4166 20.3075C96.638 20.3075 97.1769 20.1655 97.9673 19.917C98.7217 19.6684 99.4043 19.3134 99.9431 18.8874C100.518 18.4613 100.949 17.9643 101.308 17.3607C101.56 16.9702 101.739 16.5442 101.883 16.1181L98.2187 15.5501H98.2906ZM92.83 8.80454C93.3689 8.23649 94.1592 7.98797 95.1651 7.98797C96.171 7.98797 96.7817 8.27199 97.3565 8.84004C97.9313 9.40809 98.2187 10.1536 98.2906 11.0767H91.7882C91.9678 10.1181 92.327 9.37258 92.83 8.80454Z" fill="#503462"/>
11
+ <path d="M110.182 5.0058C109.248 5.0058 108.385 5.18332 107.631 5.50284C106.877 5.82237 106.194 6.31941 105.619 6.92296C105.044 7.52651 104.613 8.30758 104.29 9.15965C103.967 10.0472 103.823 11.0058 103.823 12.0709C103.823 13.136 104.003 14.1301 104.362 14.9821C104.721 15.8342 105.224 16.5798 105.799 17.1478C106.41 17.7514 107.092 18.1774 107.847 18.4969C108.601 18.8165 109.427 18.9585 110.218 18.9585C110.218 18.9585 112.445 19.136 114.026 17.5739H114.098V18.852C114.098 20.8756 113.02 21.8697 110.828 21.8697C108.637 21.8697 109.248 21.7277 108.781 21.4082C108.35 21.1241 108.062 20.7691 107.918 20.3431L104.541 21.7632C104.937 22.4733 105.511 23.0768 106.23 23.5738C107.415 24.3904 109.176 24.781 111.188 24.781C113.199 24.781 113.092 24.6389 113.99 24.3904C114.888 24.1419 115.678 23.7159 116.289 23.1478C116.828 22.6508 117.151 22.0472 117.439 21.3372C117.726 20.6271 117.906 19.7395 117.906 18.7454V5.36083H114.169V6.67444H114.098C112.84 4.82829 110.038 4.9703 110.038 4.9703L110.182 5.0058ZM114.205 13.5265C114.062 13.9881 113.882 14.4141 113.595 14.7691C113.307 15.1241 112.948 15.4082 112.517 15.6212C112.086 15.8342 111.547 15.9407 110.936 15.9407C109.93 15.9407 109.14 15.5857 108.529 14.9111C107.918 14.2366 107.631 13.278 107.631 12.0354C107.631 10.7928 107.918 9.83421 108.529 9.15965C109.14 8.44959 109.93 8.09456 110.9 8.09456C111.87 8.09456 112.014 8.20107 112.445 8.41408C112.876 8.6271 113.235 8.91113 113.523 9.26616C113.81 9.62119 114.026 10.0472 114.169 10.5088C114.313 11.0058 114.385 11.5028 114.385 12.0354C114.385 12.5679 114.313 13.1005 114.169 13.562L114.205 13.5265Z" fill="#503462"/>
12
+ <path d="M79.2863 -0.000142112V5.2543H77.2026V8.52057H79.2863V16.0472C79.2863 16.0472 79.1426 19.0294 82.304 19.8105C84.7469 20.3786 87.4053 19.349 87.4053 19.349L86.0402 15.9052C86.0402 15.9052 83.0584 17.3608 83.0584 14.7336V8.48507H86.112L87.4053 5.21879H83.0943V-0.0356445H79.2863V-0.000142112Z" fill="#503462"/>
13
+ <path d="M43.1458 17.7512V10.4021C43.1458 8.69796 42.6788 7.38435 41.7088 6.46127C40.7389 5.5382 39.1582 5.07666 37.0027 5.07666C34.8472 5.07666 35.0268 5.21867 34.2364 5.46719C33.4461 5.71571 32.7994 6.07074 32.2965 6.49678C31.7935 6.92281 31.3984 7.41985 31.111 8.0234C31.0391 8.20092 30.9673 8.37843 30.8954 8.55595L33.949 9.83406H34.0927C34.1646 9.124 34.4161 8.62696 34.8472 8.30743C35.3142 7.9879 35.9968 7.81039 36.8949 7.81039C37.793 7.81039 38.3319 7.9524 38.7271 8.27193C39.1222 8.59145 39.3378 9.01749 39.3378 9.51453C39.3378 10.0116 39.0504 10.4376 38.4756 10.6151C37.9008 10.7926 37.0027 10.9702 35.7812 11.1477C34.9549 11.2542 34.2005 11.4317 33.482 11.6092C32.7635 11.8222 32.1528 12.0707 31.6139 12.4258C31.0751 12.7808 30.6799 13.2423 30.3566 13.7749C30.0692 14.3074 29.8895 14.982 29.8895 15.7631C29.8895 17.2187 30.3566 18.3193 31.3265 19.0648C32.2606 19.8104 33.5179 20.2009 34.9909 20.2009C34.9909 20.2009 35.9968 20.2009 36.8949 20.0589C38.0086 19.8459 39.0145 19.2778 39.6611 18.6388L39.8048 19.8814H43.541V19.7394C43.1818 19.4909 43.0381 18.8163 43.0381 17.7512H43.1458ZM39.5174 14.769C39.5174 15.124 39.4456 15.479 39.3019 15.7986C39.1582 16.1181 38.9426 16.4021 38.6193 16.6861C38.3319 16.9346 37.9726 17.1477 37.5415 17.2897C37.1104 17.4672 36.6075 17.5382 36.0686 17.5382C35.5297 17.5382 34.8472 17.3962 34.4161 17.1122C33.985 16.8281 33.8053 16.3666 33.8053 15.692C33.8053 15.0175 34.0568 14.5204 34.5598 14.2364C35.0627 13.9524 35.8171 13.6684 36.859 13.4554C37.3619 13.3489 37.8289 13.2423 38.3319 13.1003C38.8348 12.9938 39.23 12.8163 39.5893 12.6033V14.769H39.5174Z" fill="#503462"/>
14
+ <path d="M12.6456 0C5.64021 0 0 5.60947 0 12.497C0 19.3846 4.88579 23.432 10.5979 24.6746C10.7416 24.6746 10.8134 24.5325 10.7056 24.4615C7.07721 21.1953 4.49062 16.0118 4.38284 12.9231C4.38284 12.0355 4.59839 11.3254 4.99357 10.6154C5.74799 9.26627 6.61019 7.98816 7.32869 6.63905C8.11904 5.14793 8.69383 4.93491 10.2745 4.89941C11.8193 4.86391 13.4 4.89941 14.9448 4.89941C16.6692 4.89941 17.208 5.25444 18.0343 6.74556C18.8965 8.30769 19.6869 9.26627 20.5491 10.8284C21.1239 11.8935 21.0879 13.1716 20.4772 14.2012C19.7228 15.5148 18.0702 18.2485 17.9265 18.5325C17.208 19.9172 16.3818 20.2012 14.8729 20.2367C14.5496 20.2367 13.867 20.2367 13.5078 20.2367C12.6456 20.2367 11.8912 20.6272 11.3523 21.3728C10.4542 22.6864 11.7834 24.9231 13.4719 24.8166C20.082 24.426 25.2193 19.1716 25.2193 12.5325C25.2193 5.89349 19.5432 0.0355024 12.5737 0.0355024L12.6456 0Z" fill="#F5897F"/>
15
+ </g>
11
16
  </svg>
12
17
  </template>
13
18
  <script setup lang="ts">
@@ -70,18 +70,18 @@ onMounted(() => {
70
70
  cursor: pointer;
71
71
  height: fit-content;
72
72
  overflow: hidden;
73
- background-color: var(--nav-background-color, var(--purple-70));
73
+ background-color: var(--nav-background-color, #FFF);
74
74
  }
75
75
  .a-nav-section.animated {
76
76
  transition: overflow 0.5s ease-in-out;
77
77
  }
78
78
  .a-nav-section--title {
79
- color: var(--nav-text-color, var(--primary-white));
79
+ color: var(--nav-text-color, #222222);
80
80
  display: flex;
81
81
  justify-content: space-between;
82
82
  background: none;
83
83
  border: none;
84
- border-top: 1px var(--nav-border-colors, var(--purple-65)) solid;
84
+ border-top: 1px var(--nav-border-colors, #DFDFDF) solid;
85
85
  padding: 0;
86
86
  width: 100%;
87
87
  cursor: pointer;
@@ -106,16 +106,16 @@ onMounted(() => {
106
106
  padding: 12px 0;
107
107
  }
108
108
  .a-nav-section--title .a-nav-section-title-wrapper .user-grid .user-icon {
109
- color: var(--nav-icon-color, var(--eggplant-30));
109
+ color: var(--nav-icon-color, #222222);
110
110
  grid-row: 1/span 2;
111
- background: var(--nav-icon-background, rgb(80, 71, 100));
111
+ background: var(--nav-icon-background, #FFF);
112
112
  border-radius: 4px;
113
113
  padding: 4px;
114
114
  margin-right: auto;
115
115
  margin-left: 16px;
116
116
  }
117
117
  .a-nav-section--title .a-nav-section-title-wrapper .user-grid .info {
118
- color: var(--nav-text-color, var(--primary-white));
118
+ color: var(--nav-text-color, #222222);
119
119
  margin: 0;
120
120
  grid-row: 1;
121
121
  grid-column: 2;
@@ -132,7 +132,7 @@ onMounted(() => {
132
132
  grid-column: 2;
133
133
  grid-row: 2;
134
134
  margin-top: 4px;
135
- color: var(--nav-text-color, var(--primary-white));
135
+ color: var(--nav-text-color, #222222);
136
136
  font-size: 11px;
137
137
  font-style: normal;
138
138
  font-weight: 400;
@@ -23,7 +23,7 @@
23
23
  <div class="navbar--logo">
24
24
  <img v-if="brandLogo" :src="brandLogo" :alt="$t('navigation.brandLogoAlt')">
25
25
  <component
26
- :is="useApptegyLogo ? ApptegyLogo : ThrillshareLogo"
26
+ :is="ApptegyLogo"
27
27
  v-else
28
28
  :alt="$t('navigation.brandLogoAlt')"
29
29
  :use-light-logo="isAdmin || Object.values(getBrandingStyles).length === 0"
@@ -35,7 +35,6 @@
35
35
  </div>
36
36
  </slot>
37
37
  </NuxtLink>
38
- <NavSidebarToggle />
39
38
  </div>
40
39
  <slot name="switcher" />
41
40
  </div>
@@ -49,15 +48,15 @@
49
48
  <slot v-if="currentApplication === application.text" />
50
49
  </NavSidebarSection>
51
50
  </li>
52
- <li>
53
- <NavHelpArticles
54
- v-if="showHelpArticles"
55
- :help-article-options="helpArticleOptions"
56
- />
57
- </li>
58
51
  </ul>
59
52
  </div>
60
53
  <div class="navbar--footer">
54
+ <NavHelpArticles
55
+ :show-help-articles="showHelpArticles"
56
+ :help-article-options="helpArticleOptions"
57
+ :settings-route="settingsRoute"
58
+ :school-website="schoolWebsite"
59
+ />
61
60
  <NavImpersonateInfoPanel
62
61
  v-if="impersonatedUser.show"
63
62
  :impersonated-user="impersonatedUser"
@@ -102,6 +101,8 @@ interface ISidebarProps {
102
101
  useApptegyLogo?: boolean;
103
102
  fixed?: boolean;
104
103
  isAdmin?: boolean;
104
+ settingsRoute: string;
105
+ schoolWebsite: string;
105
106
  }
106
107
 
107
108
  const props = withDefaults(defineProps<ISidebarProps>(), {
@@ -127,6 +128,8 @@ const props = withDefaults(defineProps<ISidebarProps>(), {
127
128
  useApptegyLogo: false,
128
129
  fixed: false,
129
130
  isAdmin: false,
131
+ settingsRoute: '',
132
+ schoolWebsite: '',
130
133
  });
131
134
 
132
135
  const emit = defineEmits<{
@@ -165,7 +168,7 @@ function onHoverLeave() {
165
168
  .navbar {
166
169
  grid-area: navsidebar;
167
170
  font: var(--font-regular);
168
- color: var(--nav-text-color, var(--primary-white));
171
+ color: var(--nav-text-color, #646464);
169
172
  transition: width 0.3s ease;
170
173
  height: 100%;
171
174
  overflow-y: auto;
@@ -185,7 +188,7 @@ function onHoverLeave() {
185
188
  .navbar--wrapper {
186
189
  display: grid;
187
190
  grid-template-rows: 0fr auto 0fr;
188
- background-color: var(--nav-background-color, var(--purple-70));
191
+ background-color: var(--nav-background-color, #FFF);
189
192
  height: 100%;
190
193
  overflow-y: auto;
191
194
  }
@@ -199,7 +202,7 @@ function onHoverLeave() {
199
202
  z-index: 10;
200
203
  }
201
204
  .navbar--header {
202
- border-bottom: 1px solid var(--nav-border-colors, var(--purple-65));
205
+ border-bottom: 1px solid var(--nav-border-colors, #DFDFDF);
203
206
  }
204
207
  .navbar--header .header-actions {
205
208
  padding: 12px 16px;
@@ -40,14 +40,14 @@ const component = computed(()=> props.as || resolveComponent("NuxtLink"));
40
40
  box-shadow: inset 0 0 0px 4px var(--primary-white);
41
41
  }
42
42
  .a-navbar-item.active, .a-navbar-item.nuxt-link-exact-active, .a-navbar-item.router-link-exact-active {
43
- background-color: var(--nav-icon-background, rgb(80, 71, 100));
43
+ background-color: var(--nav-icon-background, #F7F5F9);
44
44
  font-weight: 500;
45
45
  }
46
46
  .a-navbar-item.active svg path, .a-navbar-item.nuxt-link-exact-active svg path, .a-navbar-item.router-link-exact-active svg path {
47
47
  stroke-width: 1.5px;
48
48
  }
49
49
  .a-navbar-item:hover {
50
- background-color: var(--nav-icon-background, rgb(80, 71, 100));
50
+ background-color: var(--nav-icon-background, #F7F5F9);
51
51
  }
52
52
  .a-navbar-item:focus-visible {
53
53
  outline: var(--orange) auto 2px;
@@ -2,7 +2,6 @@
2
2
  <template>
3
3
  <div class="a-nav-section" :class="{ active }">
4
4
  <NuxtLink class="a-nav-section--link" :to="active ? '' : application.url" :aria-label="appText">
5
- <svg :class="{ active }" width="32" height="32" viewBox="0 0 32 32" aria-hidden="true" v-html="icons[application.text as keyof typeof icons]"/>
6
5
  <span v-if="expanded">{{ appText }}</span>
7
6
  <a-icon v-if="expanded && active" :class="['caret-icon', { 'collapse': !isOpen }]" icon="16:carret-up" @click="isOpen = !isOpen" />
8
7
  </NuxtLink>
@@ -33,11 +32,11 @@ const isOpen = ref(true);
33
32
 
34
33
  <style scoped>
35
34
  .a-nav-section {
36
- box-shadow: inset 0px -1px 0px 0px var(--nav-icon-background, rgb(80, 71, 100));
35
+ box-shadow: inset 0px -1px 0px 0px var(--nav-icon-background, #DFDFDF);
37
36
  min-height: 48px;
38
37
  }
39
38
  .a-nav-section.active {
40
- box-shadow: inset 0px -1px 0px 0px var(--nav-icon-background, rgb(80, 71, 100));
39
+ box-shadow: inset 0px -1px 0px 0px var(--nav-icon-background, #DFDFDF);
41
40
  }
42
41
  .a-nav-section--content {
43
42
  display: flex;
@@ -63,7 +62,7 @@ const isOpen = ref(true);
63
62
  user-select: none;
64
63
  }
65
64
  .a-nav-section--link svg:first-child {
66
- background: var(--nav-icon-background, rgb(80, 71, 100));
65
+ background: var(--nav-icon-background, #DFDFDF);
67
66
  color: var(--nav-icon-color, var(--eggplant-30));
68
67
  border-radius: 4px;
69
68
  min-width: 32px;
@@ -88,6 +87,7 @@ const isOpen = ref(true);
88
87
  width: inherit;
89
88
  }
90
89
  .a-nav-section--link .caret-icon {
90
+ cursor: pointer;
91
91
  font-size: 24px;
92
92
  transition: transform 0.2s ease-in-out;
93
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apptegy/nuxt-navigation",
3
- "version": "0.1.45",
3
+ "version": "0.1.46-alpha.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -42,10 +42,10 @@
42
42
  "eslint": "^9.25.1",
43
43
  "nuxt": "^3.17.0",
44
44
  "sass": "^1.87.0",
45
- "typescript": "^5.8.3",
45
+ "typescript": "~5.6",
46
46
  "vitest": "^3.1.2",
47
47
  "vue": "^3.5.13",
48
48
  "vue-tsc": "^2.2.10"
49
49
  },
50
- "gitHead": "98fbfe464f87cbffa62256a493274fbdb7237ef2"
50
+ "gitHead": "10bbb0c9c99365d4b0c2ab37b091913bd0af4212"
51
51
  }