sprintify-ui 0.8.11 → 0.8.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.8.11",
3
+ "version": "0.8.13",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -93,7 +93,7 @@
93
93
 
94
94
  <div
95
95
  class="flex flex-col min-h-full || xl:print:pl-0"
96
- :class="[collapsed ? 'xl:pl-16' : 'xl:pl-64']"
96
+ :class="[collapsed ? 'xl:pl-14' : 'xl:pl-64']"
97
97
  >
98
98
  <div class="sticky top-0 left-0 z-10 shadow shrink-0 || print:hidden">
99
99
  <BaseSystemAlert
@@ -141,7 +141,7 @@
141
141
  <!-- Static sidebar for desktop -->
142
142
  <div
143
143
  class="z-10 hidden || xl:fixed xl:inset-y-0 xl:flex xl:flex-col || xl:print:hidden"
144
- :class="[collapsed ? 'xl:w-16' : 'xl:w-64']"
144
+ :class="[collapsed ? 'xl:w-14' : 'xl:w-64']"
145
145
  >
146
146
  <!-- Sidebar component, swap this element with another sidebar if you like -->
147
147
  <div
@@ -150,7 +150,7 @@
150
150
  :class="[dark ? 'bg-slate-800' : 'bg-slate-50 ring-1 ring-black ring-opacity-10']"
151
151
  >
152
152
  <div
153
- class="flex"
153
+ class="flex items-center shrink-0"
154
154
  :class="[dark ? 'bg-slate-900' : 'border-b']"
155
155
  :style="{ height: navbarHeight + 'px' }"
156
156
  >
@@ -172,13 +172,13 @@
172
172
  class="px-3 flex justify-center items-center"
173
173
  :class="[
174
174
  dark ? 'text-slate-400 hover:text-slate-50' : 'text-slate-500 hover:text-slate-900',
175
- collapsed ? 'grow' : 'shrink-0'
175
+ collapsed ? 'w-full' : 'shrink-0'
176
176
  ]"
177
177
  @click="toggleCollapse"
178
178
  >
179
179
  <BaseIcon
180
180
  icon="mdi:dock-left"
181
- class="w-6 h-6"
181
+ class="w-5 h-5"
182
182
  />
183
183
  </button>
184
184
  </div>
@@ -2,6 +2,7 @@ import { DateTime } from 'luxon';
2
2
  import PageDashboard from '../../.storybook/components/PageDashboard.vue';
3
3
  import BaseLayoutSidebarConfigurable from './BaseLayoutSidebarConfigurable.vue';
4
4
  import { useSystemAlertStore } from '../stores/systemAlerts';
5
+ import { sizes } from '../../.storybook/utils';
5
6
 
6
7
  export default {
7
8
  title: 'Layout/BaseLayoutSidebarConfigurable',
@@ -9,6 +10,14 @@ export default {
9
10
  parameters: {
10
11
  layout: 'fullscreen',
11
12
  },
13
+ argTypes: {
14
+ size: {
15
+ control: {
16
+ type: 'select',
17
+ },
18
+ options: sizes,
19
+ },
20
+ },
12
21
  args: {
13
22
  user: {
14
23
  email: 'jane@witify.io',
@@ -49,7 +58,7 @@ export default {
49
58
  {
50
59
  label: 'Articles',
51
60
  to: '/articles',
52
- icon: 'heroicons:document-text-solid',
61
+ icon: 'heroicons:document-text-20-solid',
53
62
  count: 3134,
54
63
  actions: [
55
64
  {
@@ -75,7 +84,7 @@ export default {
75
84
  {
76
85
  label: 'Users',
77
86
  to: '/users',
78
- icon: 'heroicons:users-solid',
87
+ icon: 'heroicons:users-20-solid',
79
88
  },
80
89
  ],
81
90
  },
@@ -85,12 +94,12 @@ export default {
85
94
  {
86
95
  label: 'Account',
87
96
  to: '/account',
88
- icon: 'heroicons:cog-solid',
97
+ icon: 'heroicons:cog-20-solid',
89
98
  },
90
99
  {
91
100
  label: 'Logout',
92
101
  action: logout,
93
- icon: 'heroicons:arrow-left-on-rectangle-solid',
102
+ icon: 'heroicons:arrow-left-on-rectangle-20-solid',
94
103
  },
95
104
  ],
96
105
  },
@@ -99,12 +108,12 @@ export default {
99
108
  {
100
109
  label: 'Dashboard',
101
110
  to: '/',
102
- icon: 'heroicons:home-solid',
111
+ icon: 'heroicons:home-20-solid',
103
112
  },
104
113
  {
105
114
  label: 'Settings',
106
115
  to: '/account',
107
- icon: 'heroicons:cog-solid',
116
+ icon: 'heroicons:cog-20-solid',
108
117
  },
109
118
  {
110
119
  label: 'Logout',
@@ -8,8 +8,8 @@
8
8
  >
9
9
  <template #menu="{ collapsed }">
10
10
  <div
11
- class="py-6"
12
- :class="[collapsed ? '' : 'px-3']"
11
+ class=""
12
+ :class="[collapsed ? 'py-3' : 'px-3 py-6']"
13
13
  >
14
14
  <div :class="[collapsed ? 'space-y-2' : 'space-y-8']">
15
15
  <template
@@ -27,6 +27,13 @@
27
27
  >
28
28
  {{ section.label }}
29
29
  </h2>
30
+
31
+ <div
32
+ v-else
33
+ class="px-4"
34
+ >
35
+ <hr class="my-2 border-slate-600">
36
+ </div>
30
37
 
31
38
  <div
32
39
  :class="[