sprintify-ui 0.8.35 → 0.8.37
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/README.md +1 -1
- package/dist/sprintify-ui.es.js +7597 -7492
- package/dist/types/components/BaseActionItem.vue.d.ts +12 -2
- package/dist/types/components/BaseActionItemButton.vue.d.ts +3 -3
- package/dist/types/components/BaseAddressForm.vue.d.ts +19 -19
- package/dist/types/components/BaseAlert.vue.d.ts +19 -17
- package/dist/types/components/BaseApp.vue.d.ts +4 -2
- package/dist/types/components/BaseAppDialogs.vue.d.ts +2 -2
- package/dist/types/components/BaseAutocomplete.vue.d.ts +47 -44
- package/dist/types/components/BaseAutocompleteDrawer.vue.d.ts +22 -19
- package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +44 -41
- package/dist/types/components/BaseAvatar.vue.d.ts +4 -4
- package/dist/types/components/BaseAvatarGroup.vue.d.ts +1 -1
- package/dist/types/components/BaseBadge.vue.d.ts +22 -19
- package/dist/types/components/BaseBelongsTo.vue.d.ts +38 -35
- package/dist/types/components/BaseBelongsToFetch.vue.d.ts +39 -36
- package/dist/types/components/BaseButton.vue.d.ts +54 -31
- package/dist/types/components/BaseButtonGroup.vue.d.ts +22 -19
- package/dist/types/components/BaseCalendar.vue.d.ts +24 -22
- package/dist/types/components/BaseCard.vue.d.ts +6 -4
- package/dist/types/components/BaseCardRow.vue.d.ts +9 -7
- package/dist/types/components/BaseCharacterCounter.vue.d.ts +1 -1
- package/dist/types/components/BaseClipboard.vue.d.ts +6 -4
- package/dist/types/components/BaseCollapse.vue.d.ts +34 -32
- package/dist/types/components/BaseColor.vue.d.ts +5 -4
- package/dist/types/components/BaseContainer.vue.d.ts +19 -13
- package/dist/types/components/BaseCounter.vue.d.ts +1 -1
- package/dist/types/components/BaseCropper.vue.d.ts +24 -22
- package/dist/types/components/BaseCropperModal.vue.d.ts +4 -4
- package/dist/types/components/BaseDataIterator.vue.d.ts +13 -24
- package/dist/types/components/BaseDataIteratorSectionBox.vue.d.ts +6 -4
- package/dist/types/components/BaseDataIteratorSectionColumns.vue.d.ts +3 -818
- package/dist/types/components/BaseDataIteratorSectionModal.vue.d.ts +6 -4
- package/dist/types/components/BaseDataTable.vue.d.ts +37 -40
- package/dist/types/components/BaseDataTableRowAction.vue.d.ts +2 -2
- package/dist/types/components/BaseDataTableTemplate.vue.d.ts +28 -25
- package/dist/types/components/BaseDatePicker.vue.d.ts +33 -33
- package/dist/types/components/BaseDateSelect.vue.d.ts +3 -2
- package/dist/types/components/BaseDescriptionList.vue.d.ts +4 -2
- package/dist/types/components/BaseDescriptionListItem.vue.d.ts +4 -2
- package/dist/types/components/BaseDialog.vue.d.ts +9 -7
- package/dist/types/components/BaseDisplayRelativeTime.vue.d.ts +9 -7
- package/dist/types/components/BaseDraggable.vue.d.ts +10 -8
- package/dist/types/components/BaseDropdown.vue.d.ts +10 -8
- package/dist/types/components/BaseDropdownAutocomplete.vue.d.ts +20 -18
- package/dist/types/components/BaseField.vue.d.ts +11 -8
- package/dist/types/components/BaseFieldI18n.vue.d.ts +6 -6
- package/dist/types/components/BaseFilePicker.vue.d.ts +24 -22
- package/dist/types/components/BaseFilePickerCrop.vue.d.ts +18 -16
- package/dist/types/components/BaseFileUploader.vue.d.ts +58 -56
- package/dist/types/components/BaseForm.vue.d.ts +21 -19
- package/dist/types/components/BaseGantt.vue.d.ts +20 -411
- package/dist/types/components/BaseHasMany.vue.d.ts +39 -37
- package/dist/types/components/BaseHeader.vue.d.ts +20 -20
- package/dist/types/components/BaseIconPicker.vue.d.ts +7 -7
- package/dist/types/components/BaseInput.vue.d.ts +32 -31
- package/dist/types/components/BaseInputError.vue.d.ts +9 -6
- package/dist/types/components/BaseInputLabel.vue.d.ts +3 -2
- package/dist/types/components/BaseInputPercent.vue.d.ts +8 -8
- package/dist/types/components/BaseJsonReader.vue.d.ts +7 -7
- package/dist/types/components/BaseJsonReaderItem.vue.d.ts +4 -4
- package/dist/types/components/BaseLayoutNotificationDropdown.vue.d.ts +1 -1
- package/dist/types/components/BaseLayoutSidebar.vue.d.ts +13 -10
- package/dist/types/components/BaseLayoutSidebarConfigurable.vue.d.ts +10 -8
- package/dist/types/components/BaseLayoutStacked.vue.d.ts +25 -23
- package/dist/types/components/BaseLayoutStackedConfigurable.vue.d.ts +9 -7
- package/dist/types/components/BaseLoadingCover.vue.d.ts +3 -3
- package/dist/types/components/BaseMediaGallery.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaLibrary.vue.d.ts +39 -38
- package/dist/types/components/BaseMediaList.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaListItem.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaPictures.vue.d.ts +1 -1
- package/dist/types/components/BaseMenu.vue.d.ts +26 -18
- package/dist/types/components/BaseMenuItem.vue.d.ts +5 -5
- package/dist/types/components/BaseModalCenter.vue.d.ts +8 -6
- package/dist/types/components/BaseModalSide.vue.d.ts +8 -6
- package/dist/types/components/BaseNavbar.vue.d.ts +17 -15
- package/dist/types/components/BaseNavbarItem.vue.d.ts +1 -1
- package/dist/types/components/BaseNavbarItemContent.vue.d.ts +4 -4
- package/dist/types/components/BaseNavbarSideItem.vue.d.ts +1 -1
- package/dist/types/components/BaseNavbarSideItemContent.vue.d.ts +4 -4
- package/dist/types/components/BasePanel.vue.d.ts +1 -1
- package/dist/types/components/BasePassword.vue.d.ts +6 -5
- package/dist/types/components/BaseProgressCircle.vue.d.ts +2 -2
- package/dist/types/components/BaseRadioGroup.vue.d.ts +10 -8
- package/dist/types/components/BaseReadMore.vue.d.ts +6 -4
- package/dist/types/components/BaseRichText.vue.d.ts +6 -5
- package/dist/types/components/BaseScrollColumn.vue.d.ts +1 -1
- package/dist/types/components/BaseSelect.vue.d.ts +13 -10
- package/dist/types/components/BaseShortcut.vue.d.ts +4 -4
- package/dist/types/components/BaseSideNavigation.vue.d.ts +8 -6
- package/dist/types/components/BaseSideNavigationItem.vue.d.ts +12 -10
- package/dist/types/components/BaseStatistic.vue.d.ts +1 -1
- package/dist/types/components/BaseSwitch.vue.d.ts +14 -12
- package/dist/types/components/BaseSystemAlert.vue.d.ts +13 -11
- package/dist/types/components/BaseTabItem.vue.d.ts +12 -10
- package/dist/types/components/BaseTable.vue.d.ts +27 -24
- package/dist/types/components/BaseTableBody.vue.d.ts +4 -2
- package/dist/types/components/BaseTableCell.vue.d.ts +29 -27
- package/dist/types/components/BaseTableColumn.vue.d.ts +11 -11
- package/dist/types/components/BaseTableHead.vue.d.ts +6 -4
- package/dist/types/components/BaseTableHeader.vue.d.ts +11 -9
- package/dist/types/components/BaseTableRow.vue.d.ts +20 -18
- package/dist/types/components/BaseTabs.vue.d.ts +8 -6
- package/dist/types/components/BaseTagAutocomplete.vue.d.ts +47 -44
- package/dist/types/components/BaseTagAutocompleteFetch.vue.d.ts +40 -38
- package/dist/types/components/BaseTextarea.vue.d.ts +8 -7
- package/dist/types/components/BaseTextareaAutoresize.vue.d.ts +7 -6
- package/dist/types/components/BaseTimePicker.vue.d.ts +4 -3
- package/dist/types/components/BaseTooltip.vue.d.ts +15 -13
- package/dist/types/composables/breakpoints.d.ts +6 -6
- package/dist/types/composables/mediaQuery.d.ts +1 -1
- package/dist/types/composables/modal.d.ts +1 -1
- package/package.json +14 -20
- package/src/components/BaseAddressForm.stories.js +32 -33
- package/src/components/BaseAlert.stories.js +13 -13
- package/src/components/BaseAutocomplete.stories.js +26 -26
- package/src/components/BaseAutocomplete.vue +10 -3
- package/src/components/BaseAutocompleteFetch.stories.js +24 -28
- package/src/components/BaseAvatar.stories.js +11 -11
- package/src/components/BaseAvatarGroup.stories.js +9 -9
- package/src/components/BaseBadge.stories.js +18 -19
- package/src/components/BaseBelongsTo.stories.js +20 -20
- package/src/components/BaseBelongsToFetch.stories.js +21 -25
- package/src/components/BaseBoolean.stories.js +3 -3
- package/src/components/BaseBreadcrumbs.stories.js +14 -14
- package/src/components/BaseButton.stories.js +34 -34
- package/src/components/BaseButtonGroup.stories.js +18 -18
- package/src/components/BaseCalendar.stories.js +122 -46
- package/src/components/BaseCard.stories.js +3 -3
- package/src/components/BaseCharacterCounter.stories.js +5 -5
- package/src/components/BaseClipboard.stories.js +6 -6
- package/src/components/BaseCollapse.stories.js +81 -82
- package/src/components/BaseColor.stories.js +8 -8
- package/src/components/BaseContainer.stories.js +6 -6
- package/src/components/BaseCounter.stories.js +9 -9
- package/src/components/BaseCropper.stories.js +11 -11
- package/src/components/BaseCropperModal.stories.js +6 -6
- package/src/components/BaseDataIterator.stories.js +30 -33
- package/src/components/BaseDataTable.stories.js +61 -56
- package/src/components/BaseDatePicker.stories.js +29 -29
- package/src/components/BaseDateSelect.stories.js +9 -9
- package/src/components/BaseDescriptionList.stories.js +4 -4
- package/src/components/BaseDialog.stories.js +27 -27
- package/src/components/BaseDisplayRelativeTime.stories.js +4 -4
- package/src/components/BaseDropdown.stories.js +13 -13
- package/src/components/BaseDropdownAutocomplete.stories.js +25 -25
- package/src/components/BaseFieldI18n.stories.js +9 -9
- package/src/components/BaseFilePicker.stories.js +8 -8
- package/src/components/BaseFilePickerCrop.stories.js +15 -15
- package/src/components/BaseFileUploader.stories.js +12 -13
- package/src/components/BaseForm.stories.js +7 -7
- package/src/components/BaseGantt.stories.js +22 -16
- package/src/components/BaseHasMany.stories.js +18 -22
- package/src/components/BaseHeader.stories.js +43 -43
- package/src/components/BaseIconPicker.stories.js +4 -4
- package/src/components/BaseInput.stories.js +48 -48
- package/src/components/BaseInputLabel.stories.js +6 -6
- package/src/components/BaseInputPercent.stories.js +8 -8
- package/src/components/BaseJsonReader.stories.js +42 -49
- package/src/components/BaseJsonReader.vue +0 -1
- package/src/components/BaseLayoutSidebar.vue +1 -1
- package/src/components/BaseLayoutSidebarConfigurable.stories.js +72 -73
- package/src/components/BaseLayoutSidebarConfigurable.vue +1 -1
- package/src/components/BaseLayoutStackedConfigurable.stories.js +68 -69
- package/src/components/BaseLoadingCover.stories.js +9 -9
- package/src/components/BaseMediaItem.stories.js +10 -10
- package/src/components/BaseMediaLibrary.stories.js +58 -58
- package/src/components/BaseMediaPreview.stories.js +21 -21
- package/src/components/BaseMenu.stories.js +34 -34
- package/src/components/BaseModalCenter.stories.js +9 -9
- package/src/components/BaseModalSide.stories.js +6 -6
- package/src/components/BaseNavbar.stories.js +26 -26
- package/src/components/BasePagination.stories.js +2 -2
- package/src/components/BasePanel.stories.js +9 -9
- package/src/components/BasePassword.stories.js +11 -12
- package/src/components/BaseProgressCircle.stories.js +3 -3
- package/src/components/BaseRadioGroup.stories.js +15 -15
- package/src/components/BaseReadMore.stories.js +3 -3
- package/src/components/BaseRichText.stories.js +32 -32
- package/src/components/BaseSelect.stories.js +19 -19
- package/src/components/BaseShortcut.stories.js +28 -28
- package/src/components/BaseSideNavigation.stories.js +11 -11
- package/src/components/BaseSkeleton.stories.js +3 -3
- package/src/components/BaseStatistic.stories.js +16 -16
- package/src/components/BaseStepper.stories.js +29 -29
- package/src/components/BaseStepperItem.stories.js +11 -11
- package/src/components/BaseSwitch.stories.js +25 -25
- package/src/components/BaseSystemAlert.stories.js +7 -7
- package/src/components/BaseTable.stories.js +14 -16
- package/src/components/BaseTabs.stories.js +12 -13
- package/src/components/BaseTagAutocomplete.stories.js +19 -19
- package/src/components/BaseTagAutocompleteFetch.stories.js +11 -11
- package/src/components/BaseTextarea.stories.js +10 -10
- package/src/components/BaseTextareaAutoresize.stories.js +13 -13
- package/src/components/BaseTimePicker.stories.js +9 -9
- package/src/components/BaseTimeline.stories.js +22 -22
- package/src/components/BaseTimelineItem.stories.js +23 -22
- package/src/components/BaseToast.stories.js +6 -6
- package/src/components/BaseTooltip.stories.js +27 -27
- package/src/components/BaseUniqueCode.stories.js +7 -7
- package/src/stories/InputSizes.stories.js +13 -14
- package/src/stories/List.stories.js +92 -92
- package/src/stories/Show.stories.js +13 -14
|
@@ -1,141 +1,141 @@
|
|
|
1
|
-
import { DateTime } from
|
|
2
|
-
import PageDashboard from
|
|
3
|
-
import BaseLayoutSidebarConfigurable from
|
|
4
|
-
import { useSystemAlertStore } from
|
|
5
|
-
import { sizes } from
|
|
6
|
-
import BaseAutocompleteFetch from
|
|
1
|
+
import { DateTime } from "luxon";
|
|
2
|
+
import PageDashboard from "../../.storybook/components/PageDashboard.vue";
|
|
3
|
+
import BaseLayoutSidebarConfigurable from "./BaseLayoutSidebarConfigurable.vue";
|
|
4
|
+
import { useSystemAlertStore } from "../stores/systemAlerts";
|
|
5
|
+
import { sizes } from "../../.storybook/utils";
|
|
6
|
+
import BaseAutocompleteFetch from "./BaseAutocompleteFetch.vue";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
title:
|
|
9
|
+
title: "Layout/BaseLayoutSidebarConfigurable",
|
|
10
10
|
component: BaseLayoutSidebarConfigurable,
|
|
11
11
|
parameters: {
|
|
12
|
-
layout:
|
|
12
|
+
layout: "fullscreen",
|
|
13
13
|
},
|
|
14
14
|
argTypes: {
|
|
15
15
|
size: {
|
|
16
16
|
control: {
|
|
17
|
-
type:
|
|
17
|
+
type: "select",
|
|
18
18
|
},
|
|
19
19
|
options: sizes,
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
args: {
|
|
23
23
|
user: {
|
|
24
|
-
email:
|
|
25
|
-
first_name:
|
|
26
|
-
last_name:
|
|
27
|
-
full_name:
|
|
24
|
+
email: "jane@witify.io",
|
|
25
|
+
first_name: "Jane",
|
|
26
|
+
last_name: "Doe",
|
|
27
|
+
full_name: "Jane Doe",
|
|
28
28
|
avatar_url:
|
|
29
|
-
|
|
29
|
+
"https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face",
|
|
30
30
|
},
|
|
31
31
|
menu: [
|
|
32
32
|
{
|
|
33
|
-
label:
|
|
34
|
-
to:
|
|
35
|
-
icon:
|
|
33
|
+
label: "Dashboard",
|
|
34
|
+
to: "/dashboard",
|
|
35
|
+
icon: "heroicons:home-20-solid",
|
|
36
36
|
count: 1,
|
|
37
37
|
meta: {
|
|
38
|
-
showSubItems:
|
|
38
|
+
showSubItems: "always",
|
|
39
39
|
},
|
|
40
40
|
actions: [
|
|
41
41
|
{
|
|
42
|
-
label:
|
|
43
|
-
to:
|
|
42
|
+
label: "Sales",
|
|
43
|
+
to: "/dashboard/1",
|
|
44
44
|
count: 10,
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
label:
|
|
48
|
-
to:
|
|
47
|
+
label: "Performance",
|
|
48
|
+
to: "/dashboard/2",
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
label:
|
|
52
|
-
to:
|
|
51
|
+
label: "Workload",
|
|
52
|
+
to: "/dashboard/3",
|
|
53
53
|
},
|
|
54
54
|
],
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
label:
|
|
57
|
+
label: "General",
|
|
58
58
|
actions: [
|
|
59
59
|
{
|
|
60
|
-
label:
|
|
61
|
-
to:
|
|
62
|
-
icon:
|
|
60
|
+
label: "Articles",
|
|
61
|
+
to: "/articles",
|
|
62
|
+
icon: "heroicons:document-text-20-solid",
|
|
63
63
|
count: 3134,
|
|
64
64
|
actions: [
|
|
65
65
|
{
|
|
66
|
-
label:
|
|
67
|
-
to:
|
|
66
|
+
label: "Articles",
|
|
67
|
+
to: "/articles/1",
|
|
68
68
|
count: 10,
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
label:
|
|
72
|
-
to:
|
|
71
|
+
label: "Videos",
|
|
72
|
+
to: "/articles/2",
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
label:
|
|
76
|
-
to:
|
|
75
|
+
label: "Training",
|
|
76
|
+
to: "/articles/3",
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
label:
|
|
80
|
-
to:
|
|
79
|
+
label: "Archived",
|
|
80
|
+
to: "/articles/4",
|
|
81
81
|
},
|
|
82
82
|
],
|
|
83
83
|
},
|
|
84
84
|
|
|
85
85
|
{
|
|
86
|
-
label:
|
|
87
|
-
to:
|
|
88
|
-
icon:
|
|
86
|
+
label: "Users",
|
|
87
|
+
to: "/users",
|
|
88
|
+
icon: "heroicons:users-20-solid",
|
|
89
89
|
},
|
|
90
90
|
],
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
label:
|
|
93
|
+
label: "Settings",
|
|
94
94
|
actions: [
|
|
95
95
|
{
|
|
96
|
-
label:
|
|
97
|
-
to:
|
|
98
|
-
icon:
|
|
96
|
+
label: "Account",
|
|
97
|
+
to: "/account",
|
|
98
|
+
icon: "heroicons:cog-20-solid",
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
label:
|
|
101
|
+
label: "Logout",
|
|
102
102
|
action: logout,
|
|
103
|
-
icon:
|
|
103
|
+
icon: "heroicons:arrow-left-on-rectangle-20-solid",
|
|
104
104
|
},
|
|
105
105
|
],
|
|
106
106
|
},
|
|
107
107
|
],
|
|
108
108
|
userMenu: [
|
|
109
109
|
{
|
|
110
|
-
label:
|
|
111
|
-
to:
|
|
112
|
-
icon:
|
|
110
|
+
label: "Dashboard",
|
|
111
|
+
to: "/",
|
|
112
|
+
icon: "heroicons:home-20-solid",
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
|
-
label:
|
|
116
|
-
to:
|
|
117
|
-
icon:
|
|
115
|
+
label: "Settings",
|
|
116
|
+
to: "/account",
|
|
117
|
+
icon: "heroicons:cog-20-solid",
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
label:
|
|
120
|
+
label: "Logout",
|
|
121
121
|
action: logout,
|
|
122
|
-
icon:
|
|
122
|
+
icon: "heroicons:arrow-left-on-rectangle-20-solid",
|
|
123
123
|
},
|
|
124
124
|
],
|
|
125
125
|
notifications: {
|
|
126
|
-
footerTo:
|
|
127
|
-
footerLabel:
|
|
126
|
+
footerTo: "/",
|
|
127
|
+
footerLabel: "See all notifications",
|
|
128
128
|
items: [
|
|
129
129
|
{
|
|
130
|
-
id:
|
|
131
|
-
text:
|
|
130
|
+
id: "1",
|
|
131
|
+
text: "You have a new message",
|
|
132
132
|
created_at: DateTime.now().minus({ second: 1 }).toISO(),
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
id:
|
|
136
|
-
text:
|
|
137
|
-
to:
|
|
138
|
-
created_at:
|
|
135
|
+
id: "2",
|
|
136
|
+
text: "Your inbox is now full. Please empty your inbox before it goes bang.",
|
|
137
|
+
to: "/",
|
|
138
|
+
created_at: "2022-01-01T00:00:00",
|
|
139
139
|
},
|
|
140
140
|
],
|
|
141
141
|
},
|
|
@@ -143,7 +143,7 @@ export default {
|
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
async function logout() {
|
|
146
|
-
alert(
|
|
146
|
+
alert("logout");
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
const Template = (args) => ({
|
|
@@ -153,11 +153,10 @@ const Template = (args) => ({
|
|
|
153
153
|
BaseAutocompleteFetch,
|
|
154
154
|
},
|
|
155
155
|
setup() {
|
|
156
|
-
|
|
157
156
|
const alerts = useSystemAlertStore();
|
|
158
157
|
alerts.push({
|
|
159
|
-
color:
|
|
160
|
-
message:
|
|
158
|
+
color: "warning",
|
|
159
|
+
message: "This is a warning message",
|
|
161
160
|
});
|
|
162
161
|
|
|
163
162
|
return { args };
|
|
@@ -187,32 +186,32 @@ const Template = (args) => ({
|
|
|
187
186
|
export const Light = Template.bind({});
|
|
188
187
|
Light.args = {
|
|
189
188
|
dark: false,
|
|
190
|
-
logoUrl:
|
|
189
|
+
logoUrl: "https://demo.sprintify.app/img/logo/logo-side.svg",
|
|
191
190
|
};
|
|
192
191
|
|
|
193
192
|
export const Dark = Template.bind({});
|
|
194
193
|
Dark.args = {
|
|
195
194
|
dark: true,
|
|
196
|
-
logoUrl:
|
|
195
|
+
logoUrl: "https://demo.sprintify.app/img/logo/logo-side-dark.svg",
|
|
197
196
|
};
|
|
198
197
|
|
|
199
198
|
export const SizeXS = Template.bind({});
|
|
200
199
|
SizeXS.args = {
|
|
201
|
-
size:
|
|
200
|
+
size: "xs",
|
|
202
201
|
dark: true,
|
|
203
|
-
logoUrl:
|
|
202
|
+
logoUrl: "https://demo.sprintify.app/img/logo/logo-side-dark.svg",
|
|
204
203
|
};
|
|
205
204
|
|
|
206
205
|
export const SizeSM = Template.bind({});
|
|
207
206
|
SizeSM.args = {
|
|
208
|
-
size:
|
|
207
|
+
size: "sm",
|
|
209
208
|
dark: true,
|
|
210
|
-
logoUrl:
|
|
209
|
+
logoUrl: "https://demo.sprintify.app/img/logo/logo-side-dark.svg",
|
|
211
210
|
};
|
|
212
211
|
|
|
213
212
|
export const SizeMD = Template.bind({});
|
|
214
213
|
SizeMD.args = {
|
|
215
|
-
size:
|
|
214
|
+
size: "md",
|
|
216
215
|
dark: true,
|
|
217
|
-
logoUrl:
|
|
216
|
+
logoUrl: "https://demo.sprintify.app/img/logo/logo-side-dark.svg",
|
|
218
217
|
};
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
import { useSystemAlertStore } from
|
|
2
|
-
import BaseContainer from
|
|
3
|
-
import BaseLayoutStackedConfigurable from
|
|
1
|
+
import { useSystemAlertStore } from "../stores/systemAlerts";
|
|
2
|
+
import BaseContainer from "./BaseContainer.vue";
|
|
3
|
+
import BaseLayoutStackedConfigurable from "./BaseLayoutStackedConfigurable.vue";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title:
|
|
6
|
+
title: "Layout/BaseLayoutStackedConfigurable",
|
|
7
7
|
component: BaseLayoutStackedConfigurable,
|
|
8
8
|
parameters: {
|
|
9
|
-
layout:
|
|
9
|
+
layout: "fullscreen",
|
|
10
10
|
},
|
|
11
11
|
args: {
|
|
12
12
|
navbar: {
|
|
13
13
|
dark: true,
|
|
14
|
-
class:
|
|
14
|
+
class: "shadow-sm border-t-[3px] border-primary-500",
|
|
15
15
|
},
|
|
16
|
-
appName:
|
|
16
|
+
appName: "Sprintify",
|
|
17
17
|
user: {
|
|
18
|
-
email:
|
|
19
|
-
first_name:
|
|
20
|
-
last_name:
|
|
21
|
-
full_name:
|
|
18
|
+
email: "jane@witify.io",
|
|
19
|
+
first_name: "Jane",
|
|
20
|
+
last_name: "Doe",
|
|
21
|
+
full_name: "Jane Doe",
|
|
22
22
|
avatar_url:
|
|
23
|
-
|
|
23
|
+
"https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face",
|
|
24
24
|
},
|
|
25
25
|
menu: [
|
|
26
26
|
{
|
|
27
|
-
label:
|
|
27
|
+
label: "Products",
|
|
28
28
|
count: 234,
|
|
29
29
|
actions: [
|
|
30
30
|
{
|
|
31
|
-
label:
|
|
32
|
-
icon:
|
|
33
|
-
description:
|
|
34
|
-
to:
|
|
31
|
+
label: "New product",
|
|
32
|
+
icon: "heroicons:plus-20-solid",
|
|
33
|
+
description: "Create a new product",
|
|
34
|
+
to: "/",
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
label:
|
|
38
|
-
icon:
|
|
39
|
-
description:
|
|
40
|
-
to:
|
|
37
|
+
label: "All products",
|
|
38
|
+
icon: "heroicons:academic-cap-20-solid",
|
|
39
|
+
description: "View all products",
|
|
40
|
+
to: "/",
|
|
41
41
|
},
|
|
42
42
|
],
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
label:
|
|
46
|
-
to:
|
|
45
|
+
label: "Users",
|
|
46
|
+
to: "/setup",
|
|
47
47
|
actions: [
|
|
48
48
|
{
|
|
49
|
-
label:
|
|
50
|
-
icon:
|
|
51
|
-
to:
|
|
49
|
+
label: "New product",
|
|
50
|
+
icon: "heroicons:plus-20-solid",
|
|
51
|
+
to: "/",
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
meta: { line: true }
|
|
54
|
+
meta: { line: true },
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
label:
|
|
58
|
-
icon:
|
|
59
|
-
to:
|
|
57
|
+
label: "All products",
|
|
58
|
+
icon: "heroicons:academic-cap-20-solid",
|
|
59
|
+
to: "/",
|
|
60
60
|
},
|
|
61
61
|
],
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
label:
|
|
65
|
-
to:
|
|
66
|
-
icon:
|
|
64
|
+
label: "Account",
|
|
65
|
+
to: "/settings",
|
|
66
|
+
icon: "heroicons:cog",
|
|
67
67
|
},
|
|
68
68
|
],
|
|
69
69
|
userMenu: [
|
|
70
70
|
{
|
|
71
|
-
label:
|
|
72
|
-
to:
|
|
73
|
-
icon:
|
|
71
|
+
label: "Dashboard",
|
|
72
|
+
to: "/",
|
|
73
|
+
icon: "heroicons-home",
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
label:
|
|
77
|
-
to:
|
|
78
|
-
icon:
|
|
76
|
+
label: "Settings",
|
|
77
|
+
to: "/account",
|
|
78
|
+
icon: "heroicons:cog",
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
meta: { line: true }
|
|
81
|
+
meta: { line: true },
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
label:
|
|
84
|
+
label: "Logout",
|
|
85
85
|
action: logout,
|
|
86
|
-
icon:
|
|
86
|
+
icon: "heroicons:arrow-left-on-rectangle",
|
|
87
87
|
},
|
|
88
88
|
],
|
|
89
89
|
notifications: {
|
|
90
|
-
footerTo:
|
|
91
|
-
footerLabel:
|
|
90
|
+
footerTo: "/",
|
|
91
|
+
footerLabel: "See all notifications",
|
|
92
92
|
items: [
|
|
93
93
|
{
|
|
94
|
-
id:
|
|
95
|
-
text:
|
|
96
|
-
to:
|
|
94
|
+
id: "1",
|
|
95
|
+
text: "You have a new message",
|
|
96
|
+
to: "/",
|
|
97
97
|
read: false,
|
|
98
|
-
created_at:
|
|
98
|
+
created_at: "2022-12-08T19:16:10Z",
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
id:
|
|
102
|
-
text:
|
|
103
|
-
to:
|
|
101
|
+
id: "2",
|
|
102
|
+
text: "Your inbox is now full. Please empty your inbox before it goes bang.",
|
|
103
|
+
to: "/",
|
|
104
104
|
read: true,
|
|
105
|
-
created_at:
|
|
105
|
+
created_at: "2022-01-01T00:00:00",
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
id:
|
|
109
|
-
text:
|
|
110
|
-
to:
|
|
108
|
+
id: "3",
|
|
109
|
+
text: "You are running out of credits. Please top up your account.",
|
|
110
|
+
to: "/",
|
|
111
111
|
read: true,
|
|
112
|
-
created_at:
|
|
112
|
+
created_at: "2022-01-01T00:00:00",
|
|
113
113
|
},
|
|
114
114
|
],
|
|
115
115
|
},
|
|
@@ -117,7 +117,7 @@ export default {
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
async function logout() {
|
|
120
|
-
alert(
|
|
120
|
+
alert("logout");
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
const Template = (args) => ({
|
|
@@ -126,11 +126,10 @@ const Template = (args) => ({
|
|
|
126
126
|
BaseContainer,
|
|
127
127
|
},
|
|
128
128
|
setup() {
|
|
129
|
-
|
|
130
129
|
const alerts = useSystemAlertStore();
|
|
131
130
|
alerts.push({
|
|
132
|
-
color:
|
|
133
|
-
message:
|
|
131
|
+
color: "warning",
|
|
132
|
+
message: "This is a warning message",
|
|
134
133
|
});
|
|
135
134
|
|
|
136
135
|
return { args };
|
|
@@ -151,32 +150,32 @@ const Template = (args) => ({
|
|
|
151
150
|
export const Light = Template.bind({});
|
|
152
151
|
Light.args = {
|
|
153
152
|
dark: false,
|
|
154
|
-
logoUrl:
|
|
153
|
+
logoUrl: "https://demo.sprintify.app/img/logo/logo-side.svg",
|
|
155
154
|
};
|
|
156
155
|
|
|
157
156
|
export const Dark = Template.bind({});
|
|
158
157
|
Dark.args = {
|
|
159
158
|
dark: true,
|
|
160
|
-
logoUrl:
|
|
159
|
+
logoUrl: "https://demo.sprintify.app/img/logo/logo-side-dark.svg",
|
|
161
160
|
};
|
|
162
161
|
|
|
163
162
|
export const SizeXS = Template.bind({});
|
|
164
163
|
SizeXS.args = {
|
|
165
|
-
size:
|
|
164
|
+
size: "xs",
|
|
166
165
|
dark: true,
|
|
167
|
-
logoUrl:
|
|
166
|
+
logoUrl: "https://demo.sprintify.app/img/logo/logo-side-dark.svg",
|
|
168
167
|
};
|
|
169
168
|
|
|
170
169
|
export const SizeSM = Template.bind({});
|
|
171
170
|
SizeSM.args = {
|
|
172
|
-
size:
|
|
171
|
+
size: "sm",
|
|
173
172
|
dark: true,
|
|
174
|
-
logoUrl:
|
|
173
|
+
logoUrl: "https://demo.sprintify.app/img/logo/logo-side-dark.svg",
|
|
175
174
|
};
|
|
176
175
|
|
|
177
176
|
export const SizeMD = Template.bind({});
|
|
178
177
|
SizeMD.args = {
|
|
179
|
-
size:
|
|
178
|
+
size: "md",
|
|
180
179
|
dark: true,
|
|
181
|
-
logoUrl:
|
|
182
|
-
};
|
|
180
|
+
logoUrl: "https://demo.sprintify.app/img/logo/logo-side-dark.svg",
|
|
181
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import BaseLoadingCover from
|
|
1
|
+
import BaseLoadingCover from "./BaseLoadingCover.vue";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title:
|
|
4
|
+
title: "Layout/BaseLoadingCover",
|
|
5
5
|
component: BaseLoadingCover,
|
|
6
6
|
args: {
|
|
7
7
|
delay: 0,
|
|
8
8
|
modelValue: true,
|
|
9
|
-
size:
|
|
9
|
+
size: "sm",
|
|
10
10
|
},
|
|
11
11
|
argTypes: {
|
|
12
12
|
size: {
|
|
13
|
-
control: { type:
|
|
14
|
-
options: [
|
|
13
|
+
control: { type: "select" },
|
|
14
|
+
options: ["sm", "lg"],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
};
|
|
@@ -36,20 +36,20 @@ Demo.args = {};
|
|
|
36
36
|
|
|
37
37
|
export const SmallSpinner = Template.bind({});
|
|
38
38
|
SmallSpinner.args = {
|
|
39
|
-
size:
|
|
39
|
+
size: "sm",
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
export const LargeSpinner = Template.bind({});
|
|
43
43
|
LargeSpinner.args = {
|
|
44
|
-
size:
|
|
44
|
+
size: "lg",
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export const SpinnerCustomClass = Template.bind({});
|
|
48
48
|
SpinnerCustomClass.args = {
|
|
49
|
-
twIcon:
|
|
49
|
+
twIcon: "text-red-500 w-10 h-10",
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export const BackdropCustomClass = Template.bind({});
|
|
53
53
|
BackdropCustomClass.args = {
|
|
54
|
-
twBackdrop:
|
|
54
|
+
twBackdrop: "bg-slate-100 opacity-50",
|
|
55
55
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import BaseMediaItem from
|
|
1
|
+
import BaseMediaItem from "./BaseMediaItem.vue";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title:
|
|
4
|
+
title: "Media/BaseMediaItem",
|
|
5
5
|
component: BaseMediaItem,
|
|
6
6
|
args: {},
|
|
7
7
|
};
|
|
@@ -21,10 +21,10 @@ const Template = (args) => ({
|
|
|
21
21
|
export const Demo = Template.bind({});
|
|
22
22
|
Demo.args = {
|
|
23
23
|
media: {
|
|
24
|
-
id:
|
|
25
|
-
file_name:
|
|
26
|
-
url:
|
|
27
|
-
mime_type:
|
|
24
|
+
id: "xxxxxxxxxxx",
|
|
25
|
+
file_name: "picture.jpg",
|
|
26
|
+
url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80",
|
|
27
|
+
mime_type: "image",
|
|
28
28
|
size: 430 * 1024,
|
|
29
29
|
},
|
|
30
30
|
};
|
|
@@ -32,10 +32,10 @@ Demo.args = {
|
|
|
32
32
|
export const PDF = Template.bind({});
|
|
33
33
|
PDF.args = {
|
|
34
34
|
media: {
|
|
35
|
-
id:
|
|
36
|
-
file_name:
|
|
37
|
-
url:
|
|
38
|
-
mime_type:
|
|
35
|
+
id: "xxxxxxxxxxx",
|
|
36
|
+
file_name: "document.pdf",
|
|
37
|
+
url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80",
|
|
38
|
+
mime_type: "application/pdf",
|
|
39
39
|
size: 430 * 1024,
|
|
40
40
|
},
|
|
41
41
|
};
|