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