sprintify-ui 0.5.3 → 0.5.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.
- package/dist/sprintify-ui.es.js +6 -6
- package/dist/types/src/components/BaseActionItem.vue.d.ts +1 -1
- package/dist/types/src/components/BaseActionItemButton.vue.d.ts +1 -1
- package/dist/types/src/components/BaseDataIterator.vue.d.ts +1 -1
- package/dist/types/src/components/BaseDataTable.vue.d.ts +1 -1
- package/dist/types/src/components/BaseHeader.vue.d.ts +1 -2
- package/dist/types/src/components/BaseLayoutSidebarConfigurable.vue.d.ts +1 -1
- package/dist/types/src/components/BaseLayoutStackedConfigurable.vue.d.ts +1 -2
- package/dist/types/src/components/BaseMenu.vue.d.ts +1 -1
- package/dist/types/src/components/BaseNavbarItem.vue.d.ts +1 -1
- package/dist/types/src/components/BaseNavbarSideItem.vue.d.ts +1 -1
- package/dist/types/src/types/index.d.ts +13 -0
- package/package.json +1 -1
- package/src/components/BaseActionItem.vue +1 -1
- package/src/components/BaseActionItemButton.vue +1 -1
- package/src/components/BaseDataIterator.vue +1 -1
- package/src/components/BaseDataTable.vue +1 -1
- package/src/components/BaseHeader.vue +1 -2
- package/src/components/BaseLayoutSidebarConfigurable.vue +1 -1
- package/src/components/BaseLayoutStacked.vue +0 -1
- package/src/components/BaseLayoutStackedConfigurable.stories.js +4 -0
- package/src/components/BaseLayoutStackedConfigurable.vue +2 -2
- package/src/components/BaseMenu.vue +1 -1
- package/src/components/BaseNavbar.vue +1 -1
- package/src/components/BaseNavbarItem.vue +1 -1
- package/src/components/BaseNavbarItemContent.vue +2 -2
- package/src/components/BaseNavbarSideItem.vue +1 -1
- package/src/types/index.ts +15 -1
- package/dist/types/src/types/ActionItem.d.ts +0 -15
- package/src/types/ActionItem.ts +0 -16
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -34285,7 +34285,7 @@ const Vf = /* @__PURE__ */ Te({
|
|
|
34285
34285
|
}
|
|
34286
34286
|
},
|
|
34287
34287
|
setup(n) {
|
|
34288
|
-
const t = n, e = C0(), r = U(() => e.width.value < t.breakpoint), i = U(() => t.height ? t.height : t.size == "xs" ? 48 : t.size == "sm" ? 56 : 64), o = U(() => t.dark ? "bg-slate-
|
|
34288
|
+
const t = n, e = C0(), r = U(() => e.width.value < t.breakpoint), i = U(() => t.height ? t.height : t.size == "xs" ? 48 : t.size == "sm" ? 56 : 64), o = U(() => t.dark ? "bg-slate-800" : "bg-white"), a = U(() => Gn(
|
|
34289
34289
|
"w-full",
|
|
34290
34290
|
o.value,
|
|
34291
34291
|
t.class
|
|
@@ -34391,7 +34391,7 @@ const Vf = /* @__PURE__ */ Te({
|
|
|
34391
34391
|
const a = [
|
|
34392
34392
|
"flex items-center w-full"
|
|
34393
34393
|
];
|
|
34394
|
-
return t.active ? t.dark ? a.push("text-white") : a.push("text-
|
|
34394
|
+
return t.active ? t.dark ? a.push("text-white") : a.push("text-primary-600") : t.dark ? a.push("hover:text-white text-slate-300") : a.push(
|
|
34395
34395
|
"hover:text-slate-900 text-slate-800"
|
|
34396
34396
|
), a;
|
|
34397
34397
|
}), r = U(() => {
|
|
@@ -45292,8 +45292,7 @@ const RL = /* @__PURE__ */ Qn(ML, [["__scopeId", "data-v-ee03d0ec"]]), IL = { cl
|
|
|
45292
45292
|
}, 1032, ["color", "to", "action", "closable", "onClose"]))), 128)),
|
|
45293
45293
|
Se(Ub, Yt(o.navbar, {
|
|
45294
45294
|
dark: o.dark,
|
|
45295
|
-
size: o.size
|
|
45296
|
-
class: "shadow"
|
|
45295
|
+
size: o.size
|
|
45297
45296
|
}), {
|
|
45298
45297
|
navbar: Ce((l) => [
|
|
45299
45298
|
$e(o.$slots, "navbar", jt($t(l)))
|
|
@@ -45536,7 +45535,8 @@ const RL = /* @__PURE__ */ Qn(ML, [["__scopeId", "data-v-ee03d0ec"]]), IL = { cl
|
|
|
45536
45535
|
const a = Kt("RouterLink");
|
|
45537
45536
|
return B(), je(l0, {
|
|
45538
45537
|
size: n.size,
|
|
45539
|
-
dark: n.dark
|
|
45538
|
+
dark: n.dark,
|
|
45539
|
+
navbar: n.navbar
|
|
45540
45540
|
}, {
|
|
45541
45541
|
navbar: Ce(() => [
|
|
45542
45542
|
L("div", s4, [
|
|
@@ -45626,7 +45626,7 @@ const RL = /* @__PURE__ */ Qn(ML, [["__scopeId", "data-v-ee03d0ec"]]), IL = { cl
|
|
|
45626
45626
|
$e(i.$slots, "default")
|
|
45627
45627
|
]),
|
|
45628
45628
|
_: 3
|
|
45629
|
-
}, 8, ["size", "dark"]);
|
|
45629
|
+
}, 8, ["size", "dark", "navbar"]);
|
|
45630
45630
|
};
|
|
45631
45631
|
}
|
|
45632
45632
|
}), v4 = { class: "min-h-full" }, y4 = /* @__PURE__ */ L("div", { class: "fixed inset-0 bg-opacity-75 bg-slate-600" }, null, -1), b4 = { class: "fixed inset-0 z-40 flex" }, w4 = { class: "absolute top-0 right-0 pt-2 -mr-12" }, x4 = /* @__PURE__ */ L("span", { class: "sr-only" }, "Close sidebar", -1), E4 = { class: "flex items-center flex-shrink-0 px-4" }, S4 = ["src", "alt"], _4 = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { Collection, DataIteratorSection, DataTableQuery } from '@/types';
|
|
3
|
-
import { ActionItem } from '@/types
|
|
3
|
+
import { ActionItem } from '@/types';
|
|
4
4
|
type Direction = 'asc' | 'desc';
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { CollectionItem, DataIteratorSection, DataTableQuery, RowAction } from '@/types';
|
|
3
3
|
import { RouteLocationRaw } from 'vue-router';
|
|
4
|
-
import { ActionItem } from '@/types
|
|
4
|
+
import { ActionItem } from '@/types';
|
|
5
5
|
declare function fetch(): void;
|
|
6
6
|
declare function fetchWithoutLoading(): void;
|
|
7
7
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { User } from '@/types/User';
|
|
2
|
+
import { ActionItem } from '@/types';
|
|
2
3
|
import { PropType } from 'vue';
|
|
3
4
|
import { NotificationsConfig } from '../types';
|
|
4
|
-
import { ActionItem } from '@/types/ActionItem';
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
6
6
|
appName: {
|
|
7
7
|
default: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { User } from '@/types/User';
|
|
2
|
+
import { ActionItem, NotificationsConfig } from '@/types';
|
|
2
3
|
import { PropType } from 'vue';
|
|
3
|
-
import { NotificationsConfig } from '../types';
|
|
4
|
-
import { ActionItem } from '@/types/ActionItem';
|
|
5
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
6
5
|
appName: {
|
|
7
6
|
default: string;
|
|
@@ -52,6 +52,19 @@ export interface PaginatedCollection extends PaginationMetadata {
|
|
|
52
52
|
data: Collection;
|
|
53
53
|
}
|
|
54
54
|
export type ActionColors = 'dark' | 'light' | 'danger' | 'success' | 'warning' | 'primary' | 'secondary';
|
|
55
|
+
export interface ActionItem {
|
|
56
|
+
label?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
href?: string;
|
|
59
|
+
to?: RouteLocationRaw;
|
|
60
|
+
action?: () => Promise<void> | void;
|
|
61
|
+
icon?: string;
|
|
62
|
+
count?: number;
|
|
63
|
+
color?: ActionColors;
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
meta?: Record<string, any>;
|
|
66
|
+
actions?: ActionItem[];
|
|
67
|
+
}
|
|
55
68
|
export type Row = Record<string, any>;
|
|
56
69
|
export interface BaseTableColumn {
|
|
57
70
|
id: string;
|
package/package.json
CHANGED
|
@@ -231,7 +231,7 @@ import {
|
|
|
231
231
|
PaginatedCollection,
|
|
232
232
|
ResourceCollection,
|
|
233
233
|
} from '@/types';
|
|
234
|
-
import { ActionItem } from '@/types
|
|
234
|
+
import { ActionItem } from '@/types';
|
|
235
235
|
|
|
236
236
|
import BaseMenu from './BaseMenu.vue';
|
|
237
237
|
import BasePagination from './BasePagination.vue';
|
|
@@ -260,7 +260,7 @@ import BaseEmptyState from '../svg/BaseEmptyState.vue';
|
|
|
260
260
|
import { RouteLocationRaw } from 'vue-router';
|
|
261
261
|
import BaseMenu from './BaseMenu.vue';
|
|
262
262
|
import BaseDataTableRowAction from './BaseDataTableRowAction.vue';
|
|
263
|
-
import { ActionItem } from '@/types
|
|
263
|
+
import { ActionItem } from '@/types';
|
|
264
264
|
|
|
265
265
|
const router = useRouter();
|
|
266
266
|
|
|
@@ -99,8 +99,7 @@
|
|
|
99
99
|
</template>
|
|
100
100
|
|
|
101
101
|
<script setup lang="ts">
|
|
102
|
-
import { Breadcrumb } from '@/types';
|
|
103
|
-
import { ActionItem } from '@/types/ActionItem';
|
|
102
|
+
import { Breadcrumb, ActionItem } from '@/types';
|
|
104
103
|
import { useResizeObserver } from '@vueuse/core';
|
|
105
104
|
import { BaseBreadcrumbs, BaseIcon } from '..';
|
|
106
105
|
import BaseActionItemButton from './BaseActionItemButton.vue';
|
|
@@ -101,9 +101,9 @@
|
|
|
101
101
|
|
|
102
102
|
<script setup lang="ts">
|
|
103
103
|
import { User } from '@/types/User';
|
|
104
|
+
import { ActionItem } from '@/types';
|
|
104
105
|
import { PropType } from 'vue';
|
|
105
106
|
import { NotificationsConfig } from '../types';
|
|
106
|
-
import { ActionItem } from '@/types/ActionItem';
|
|
107
107
|
import BaseAvatar from './BaseAvatar.vue';
|
|
108
108
|
import BaseLayoutNotificationDropdown from './BaseLayoutNotificationDropdown.vue';
|
|
109
109
|
import BaseLayoutSidebar from './BaseLayoutSidebar.vue';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<BaseLayoutStacked
|
|
3
3
|
:size="size"
|
|
4
4
|
:dark="dark"
|
|
5
|
+
:navbar="navbar"
|
|
5
6
|
>
|
|
6
7
|
<template #navbar>
|
|
7
8
|
<div class="flex w-full justify-between">
|
|
@@ -113,9 +114,8 @@
|
|
|
113
114
|
|
|
114
115
|
<script lang="ts" setup>
|
|
115
116
|
import { User } from '@/types/User';
|
|
117
|
+
import { ActionItem, NotificationsConfig } from '@/types';
|
|
116
118
|
import { PropType } from 'vue';
|
|
117
|
-
import { NotificationsConfig } from '../types';
|
|
118
|
-
import { ActionItem } from '@/types/ActionItem';
|
|
119
119
|
import BaseAvatar from './BaseAvatar.vue';
|
|
120
120
|
import BaseLayoutStacked from './BaseLayoutStacked.vue';
|
|
121
121
|
import BaseMenu from './BaseMenu.vue';
|
|
@@ -120,7 +120,7 @@ import { PropType } from 'vue';
|
|
|
120
120
|
import { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/vue';
|
|
121
121
|
import BaseMenuItem from './BaseMenuItem.vue';
|
|
122
122
|
import { twMerge } from 'tailwind-merge';
|
|
123
|
-
import { ActionItem } from '@/types
|
|
123
|
+
import { ActionItem } from '@/types';
|
|
124
124
|
|
|
125
125
|
const props = defineProps({
|
|
126
126
|
items: {
|
|
@@ -123,7 +123,7 @@ const heightInner = computed(() => {
|
|
|
123
123
|
});
|
|
124
124
|
|
|
125
125
|
const backgroundClass = computed(() => {
|
|
126
|
-
return props.dark ? 'bg-slate-
|
|
126
|
+
return props.dark ? 'bg-slate-800' : 'bg-white';
|
|
127
127
|
});
|
|
128
128
|
|
|
129
129
|
const classInternal = computed(() => {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
<script setup lang="ts">
|
|
49
49
|
import { PropType, Ref } from 'vue';
|
|
50
|
-
import { ActionItem } from '@/types
|
|
50
|
+
import { ActionItem } from '@/types';
|
|
51
51
|
import BaseActionItem from './BaseActionItem.vue';
|
|
52
52
|
import BaseNavbarItemContent from './BaseNavbarItemContent.vue';
|
|
53
53
|
import BaseMenuItem from './BaseMenuItem.vue';
|
|
@@ -64,11 +64,11 @@ const classes = computed(() => {
|
|
|
64
64
|
if (props.dark) {
|
|
65
65
|
classList.push('text-white');
|
|
66
66
|
} else {
|
|
67
|
-
classList.push('text-
|
|
67
|
+
classList.push('text-primary-600');
|
|
68
68
|
}
|
|
69
69
|
} else {
|
|
70
70
|
if (props.dark) {
|
|
71
|
-
classList.push('hover:text-white text-slate-
|
|
71
|
+
classList.push('hover:text-white text-slate-300');
|
|
72
72
|
} else {
|
|
73
73
|
classList.push(
|
|
74
74
|
'hover:text-slate-900 text-slate-800'
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
<script setup lang="ts">
|
|
53
53
|
import { PropType } from 'vue';
|
|
54
|
-
import { ActionItem } from '@/types
|
|
54
|
+
import { ActionItem } from '@/types';
|
|
55
55
|
import BaseActionItem from './BaseActionItem.vue';
|
|
56
56
|
import BaseNavbarSideItemContent from './BaseNavbarSideItemContent.vue';
|
|
57
57
|
import BaseCounter from './BaseCounter.vue';
|
package/src/types/index.ts
CHANGED
|
@@ -75,6 +75,20 @@ export type ActionColors =
|
|
|
75
75
|
| 'primary'
|
|
76
76
|
| 'secondary';
|
|
77
77
|
|
|
78
|
+
export interface ActionItem {
|
|
79
|
+
label?: string;
|
|
80
|
+
description?: string;
|
|
81
|
+
href?: string;
|
|
82
|
+
to?: RouteLocationRaw;
|
|
83
|
+
action?: () => Promise<void> | void;
|
|
84
|
+
icon?: string;
|
|
85
|
+
count?: number;
|
|
86
|
+
color?: ActionColors;
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
meta?: Record<string, any>;
|
|
89
|
+
actions?: ActionItem[];
|
|
90
|
+
}
|
|
91
|
+
|
|
78
92
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
93
|
export type Row = Record<string, any>;
|
|
80
94
|
|
|
@@ -236,4 +250,4 @@ export interface BaseCropperConfig {
|
|
|
236
250
|
preset?: CropperPreset;
|
|
237
251
|
presetOptions?: Record<string, any>;
|
|
238
252
|
saveOptions?: ResultOptions;
|
|
239
|
-
}
|
|
253
|
+
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RouteLocationRaw } from "vue-router";
|
|
2
|
-
import { ActionColors } from ".";
|
|
3
|
-
export interface ActionItem {
|
|
4
|
-
label?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
href?: string;
|
|
7
|
-
to?: RouteLocationRaw;
|
|
8
|
-
action?: () => Promise<void> | void;
|
|
9
|
-
icon?: string;
|
|
10
|
-
count?: number;
|
|
11
|
-
color?: ActionColors;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
meta?: Record<string, any>;
|
|
14
|
-
actions?: ActionItem[];
|
|
15
|
-
}
|
package/src/types/ActionItem.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RouteLocationRaw } from "vue-router";
|
|
2
|
-
import { ActionColors } from ".";
|
|
3
|
-
|
|
4
|
-
export interface ActionItem {
|
|
5
|
-
label?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
href?: string;
|
|
8
|
-
to?: RouteLocationRaw;
|
|
9
|
-
action?: () => Promise<void> | void;
|
|
10
|
-
icon?: string;
|
|
11
|
-
count?: number;
|
|
12
|
-
color?: ActionColors;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
meta?: Record<string, any>;
|
|
15
|
-
actions?: ActionItem[];
|
|
16
|
-
}
|