sprintify-ui 0.0.189 → 0.0.191
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 +3268 -3253
- package/dist/style.css +1 -1
- package/dist/types/src/components/BaseActionItem.vue.d.ts +22 -33
- package/dist/types/src/components/BaseAlert.vue.d.ts +3 -3
- package/dist/types/src/components/BaseAppDialogs.vue.d.ts +1 -1
- package/dist/types/src/components/BaseAutocomplete.vue.d.ts +1 -1
- package/dist/types/src/components/BaseAutocompleteFetch.vue.d.ts +1 -1
- package/dist/types/src/components/BaseBadge.vue.d.ts +2 -0
- package/dist/types/src/components/BaseBelongsTo.vue.d.ts +1 -1
- package/dist/types/src/components/BaseButtonGroup.vue.d.ts +1 -1
- package/dist/types/src/components/BaseColor.vue.d.ts +1 -1
- package/dist/types/src/components/BaseCounter.vue.d.ts +3 -3
- package/dist/types/src/components/BaseDataTable.vue.d.ts +0 -3
- package/dist/types/src/components/BaseDatePicker.vue.d.ts +1 -1
- package/dist/types/src/components/BaseDateSelect.vue.d.ts +1 -1
- package/dist/types/src/components/BaseDialog.vue.d.ts +2 -2
- package/dist/types/src/components/BaseDropdownAutocomplete.vue.d.ts +1 -1
- package/dist/types/src/components/BaseField.vue.d.ts +1 -1
- package/dist/types/src/components/BaseFieldI18n.vue.d.ts +1 -1
- package/dist/types/src/components/BaseInput.vue.d.ts +3 -3
- package/dist/types/src/components/BaseInputPercent.vue.d.ts +1 -1
- package/dist/types/src/components/BaseMenu.vue.d.ts +3 -3
- package/dist/types/src/components/BaseMenuItem.vue.d.ts +3 -3
- package/dist/types/src/components/BaseNavbarItemContent.vue.d.ts +1 -1
- package/dist/types/src/components/BaseNavbarSideItemContent.vue.d.ts +1 -1
- package/dist/types/src/components/BaseNumber.vue.d.ts +4 -4
- package/dist/types/src/components/BasePassword.vue.d.ts +1 -1
- package/dist/types/src/components/BaseRadioGroup.vue.d.ts +1 -1
- package/dist/types/src/components/BaseRichText.vue.d.ts +4 -4
- package/dist/types/src/components/BaseSelect.vue.d.ts +1 -1
- package/dist/types/src/components/BaseShortcut.vue.d.ts +23 -4
- package/dist/types/src/components/BaseStatistic.vue.d.ts +1 -1
- package/dist/types/src/components/BaseSwitch.vue.d.ts +4 -4
- package/dist/types/src/components/BaseSystemAlert.vue.d.ts +3 -3
- package/dist/types/src/components/BaseTableColumn.vue.d.ts +1 -1
- package/dist/types/src/components/BaseTagAutocomplete.vue.d.ts +1 -1
- package/dist/types/src/components/BaseTextarea.vue.d.ts +1 -1
- package/dist/types/src/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/BaseActionItem.vue +21 -28
- package/src/components/BaseBadge.stories.js +26 -0
- package/src/components/BaseBadge.vue +17 -3
- package/src/components/BaseDataIteratorSectionButton.vue +6 -0
- package/src/components/BaseDataTable.vue +1 -3
- package/src/components/BaseNavbarItem.vue +4 -2
- package/src/components/BaseNavbarSideItem.vue +8 -5
- package/src/components/BaseShortcut.stories.js +20 -1
- package/src/components/BaseShortcut.vue +13 -4
- package/src/components/BaseTable.vue +1 -1
- package/src/types/index.ts +1 -0
|
@@ -35,7 +35,8 @@ export const Basic = Template.bind({});
|
|
|
35
35
|
Basic.args = {
|
|
36
36
|
to: '/restaurants',
|
|
37
37
|
title: 'Basic shortcut',
|
|
38
|
-
icon: 'heroicons:user',
|
|
38
|
+
icon: 'heroicons:user-solid',
|
|
39
|
+
color: 'blue',
|
|
39
40
|
};
|
|
40
41
|
|
|
41
42
|
export const Colors = (args) => ({
|
|
@@ -81,3 +82,21 @@ Contrast.args = {
|
|
|
81
82
|
'Le lorem ipsum est, en imprimerie, une suite de mots sans signification utilisée à titre provisoire pour calibrer une mise en page',
|
|
82
83
|
linkText: 'Open app',
|
|
83
84
|
};
|
|
85
|
+
|
|
86
|
+
export const Href = Template.bind({});
|
|
87
|
+
Href.args = {
|
|
88
|
+
href: 'https://www.google.com',
|
|
89
|
+
title: 'Basic shortcut',
|
|
90
|
+
icon: 'heroicons:user-solid',
|
|
91
|
+
color: 'blue',
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export const Action = Template.bind({});
|
|
95
|
+
Action.args = {
|
|
96
|
+
action() {
|
|
97
|
+
alert(1);
|
|
98
|
+
},
|
|
99
|
+
title: 'Basic shortcut',
|
|
100
|
+
icon: 'heroicons:user-solid',
|
|
101
|
+
color: 'blue',
|
|
102
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<BaseCard class="flex duration-200 hover:bg-slate-50">
|
|
3
|
-
<
|
|
3
|
+
<BaseActionItem :to="to" :href="href" :action="action" class="block w-full">
|
|
4
4
|
<section class="whitespace-pre-line p-4">
|
|
5
5
|
<!-- Icon -->
|
|
6
6
|
<div
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
40
40
|
</section>
|
|
41
|
-
</
|
|
41
|
+
</BaseActionItem>
|
|
42
42
|
</BaseCard>
|
|
43
43
|
</template>
|
|
44
44
|
|
|
@@ -48,11 +48,20 @@ import { Icon as BaseIcon } from '@iconify/vue';
|
|
|
48
48
|
import BaseCard from './BaseCard.vue';
|
|
49
49
|
import { RouteLocationRaw } from 'vue-router';
|
|
50
50
|
import { getColorConfig } from '@/utils/colors';
|
|
51
|
+
import BaseActionItem from './BaseActionItem.vue';
|
|
51
52
|
|
|
52
53
|
const props = defineProps({
|
|
53
54
|
to: {
|
|
54
|
-
|
|
55
|
-
type: [String, Object] as PropType<RouteLocationRaw>,
|
|
55
|
+
default: undefined,
|
|
56
|
+
type: [String, Object, undefined] as PropType<RouteLocationRaw | undefined>,
|
|
57
|
+
},
|
|
58
|
+
href: {
|
|
59
|
+
default: undefined,
|
|
60
|
+
type: [String, undefined] as PropType<string | undefined>,
|
|
61
|
+
},
|
|
62
|
+
action: {
|
|
63
|
+
default: undefined,
|
|
64
|
+
type: [Function, undefined] as PropType<() => Promise<void> | undefined>,
|
|
56
65
|
},
|
|
57
66
|
title: {
|
|
58
67
|
required: true,
|
|
@@ -837,7 +837,7 @@ function firstColStyles(th: boolean): any {
|
|
|
837
837
|
left += DETAIL_ROW_WIDTH;
|
|
838
838
|
}
|
|
839
839
|
return {
|
|
840
|
-
zIndex: zIndex(th),
|
|
840
|
+
zIndex: zIndex(th) + 1,
|
|
841
841
|
position: 'sticky',
|
|
842
842
|
left: left + 'px',
|
|
843
843
|
borderRight: horizontalScrolling.value ? '1px solid #e2e8f0' : 'none',
|