sprintify-ui 0.8.12 → 0.8.14
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/sprintify-ui.es.js +1607 -1600
- package/dist/types/components/BaseLayoutSidebarConfigurable.vue.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/BaseLayoutSidebar.vue +1 -1
- package/src/components/BaseLayoutSidebarConfigurable.stories.js +30 -6
- package/src/components/BaseLayoutSidebarConfigurable.vue +11 -4
package/package.json
CHANGED
|
@@ -2,6 +2,8 @@ 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';
|
|
6
|
+
import BaseAutocompleteFetch from './BaseAutocompleteFetch.vue';
|
|
5
7
|
|
|
6
8
|
export default {
|
|
7
9
|
title: 'Layout/BaseLayoutSidebarConfigurable',
|
|
@@ -9,6 +11,14 @@ export default {
|
|
|
9
11
|
parameters: {
|
|
10
12
|
layout: 'fullscreen',
|
|
11
13
|
},
|
|
14
|
+
argTypes: {
|
|
15
|
+
size: {
|
|
16
|
+
control: {
|
|
17
|
+
type: 'select',
|
|
18
|
+
},
|
|
19
|
+
options: sizes,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
12
22
|
args: {
|
|
13
23
|
user: {
|
|
14
24
|
email: 'jane@witify.io',
|
|
@@ -49,7 +59,7 @@ export default {
|
|
|
49
59
|
{
|
|
50
60
|
label: 'Articles',
|
|
51
61
|
to: '/articles',
|
|
52
|
-
icon: 'heroicons:document-text-solid',
|
|
62
|
+
icon: 'heroicons:document-text-20-solid',
|
|
53
63
|
count: 3134,
|
|
54
64
|
actions: [
|
|
55
65
|
{
|
|
@@ -75,7 +85,7 @@ export default {
|
|
|
75
85
|
{
|
|
76
86
|
label: 'Users',
|
|
77
87
|
to: '/users',
|
|
78
|
-
icon: 'heroicons:users-solid',
|
|
88
|
+
icon: 'heroicons:users-20-solid',
|
|
79
89
|
},
|
|
80
90
|
],
|
|
81
91
|
},
|
|
@@ -85,12 +95,12 @@ export default {
|
|
|
85
95
|
{
|
|
86
96
|
label: 'Account',
|
|
87
97
|
to: '/account',
|
|
88
|
-
icon: 'heroicons:cog-solid',
|
|
98
|
+
icon: 'heroicons:cog-20-solid',
|
|
89
99
|
},
|
|
90
100
|
{
|
|
91
101
|
label: 'Logout',
|
|
92
102
|
action: logout,
|
|
93
|
-
icon: 'heroicons:arrow-left-on-rectangle-solid',
|
|
103
|
+
icon: 'heroicons:arrow-left-on-rectangle-20-solid',
|
|
94
104
|
},
|
|
95
105
|
],
|
|
96
106
|
},
|
|
@@ -99,12 +109,12 @@ export default {
|
|
|
99
109
|
{
|
|
100
110
|
label: 'Dashboard',
|
|
101
111
|
to: '/',
|
|
102
|
-
icon: 'heroicons:home-solid',
|
|
112
|
+
icon: 'heroicons:home-20-solid',
|
|
103
113
|
},
|
|
104
114
|
{
|
|
105
115
|
label: 'Settings',
|
|
106
116
|
to: '/account',
|
|
107
|
-
icon: 'heroicons:cog-solid',
|
|
117
|
+
icon: 'heroicons:cog-20-solid',
|
|
108
118
|
},
|
|
109
119
|
{
|
|
110
120
|
label: 'Logout',
|
|
@@ -140,6 +150,7 @@ const Template = (args) => ({
|
|
|
140
150
|
components: {
|
|
141
151
|
BaseLayoutSidebarConfigurable,
|
|
142
152
|
PageDashboard,
|
|
153
|
+
BaseAutocompleteFetch,
|
|
143
154
|
},
|
|
144
155
|
setup() {
|
|
145
156
|
|
|
@@ -153,6 +164,19 @@ const Template = (args) => ({
|
|
|
153
164
|
},
|
|
154
165
|
template: `
|
|
155
166
|
<BaseLayoutSidebarConfigurable v-bind="args">
|
|
167
|
+
|
|
168
|
+
<template #navbar>
|
|
169
|
+
<div class="hidden items-center grow || sm:flex">
|
|
170
|
+
<BaseAutocompleteFetch
|
|
171
|
+
url="https://faker.witify.io/api/todos"
|
|
172
|
+
labelKey="title"
|
|
173
|
+
valueKey="id"
|
|
174
|
+
class="w-full"
|
|
175
|
+
size="md"
|
|
176
|
+
/>
|
|
177
|
+
</div>
|
|
178
|
+
</template>
|
|
179
|
+
|
|
156
180
|
<div class="py-10 bg-slate-50">
|
|
157
181
|
<PageDashboard />
|
|
158
182
|
</div>
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
>
|
|
9
9
|
<template #menu="{ collapsed }">
|
|
10
10
|
<div
|
|
11
|
-
class="
|
|
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="[
|
|
@@ -60,8 +67,8 @@
|
|
|
60
67
|
|
|
61
68
|
<template #navbar>
|
|
62
69
|
<div class="flex flex-1 justify-between px-4">
|
|
63
|
-
<div class="flex
|
|
64
|
-
|
|
70
|
+
<div class="flex grow">
|
|
71
|
+
<slot name="navbar" />
|
|
65
72
|
</div>
|
|
66
73
|
|
|
67
74
|
<div class="ml-4 flex items-center md:ml-6">
|