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.
Files changed (204) 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/BaseGantt.stories.js +22 -16
  154. package/src/components/BaseHasMany.stories.js +18 -22
  155. package/src/components/BaseHeader.stories.js +43 -43
  156. package/src/components/BaseIconPicker.stories.js +4 -4
  157. package/src/components/BaseInput.stories.js +48 -48
  158. package/src/components/BaseInputLabel.stories.js +6 -6
  159. package/src/components/BaseInputPercent.stories.js +8 -8
  160. package/src/components/BaseJsonReader.stories.js +42 -49
  161. package/src/components/BaseJsonReader.vue +0 -1
  162. package/src/components/BaseLayoutSidebar.vue +1 -1
  163. package/src/components/BaseLayoutSidebarConfigurable.stories.js +72 -73
  164. package/src/components/BaseLayoutSidebarConfigurable.vue +1 -1
  165. package/src/components/BaseLayoutStackedConfigurable.stories.js +68 -69
  166. package/src/components/BaseLoadingCover.stories.js +9 -9
  167. package/src/components/BaseMediaItem.stories.js +10 -10
  168. package/src/components/BaseMediaLibrary.stories.js +58 -58
  169. package/src/components/BaseMediaPreview.stories.js +21 -21
  170. package/src/components/BaseMenu.stories.js +34 -34
  171. package/src/components/BaseModalCenter.stories.js +9 -9
  172. package/src/components/BaseModalSide.stories.js +6 -6
  173. package/src/components/BaseNavbar.stories.js +26 -26
  174. package/src/components/BasePagination.stories.js +2 -2
  175. package/src/components/BasePanel.stories.js +9 -9
  176. package/src/components/BasePassword.stories.js +11 -12
  177. package/src/components/BaseProgressCircle.stories.js +3 -3
  178. package/src/components/BaseRadioGroup.stories.js +15 -15
  179. package/src/components/BaseReadMore.stories.js +3 -3
  180. package/src/components/BaseRichText.stories.js +32 -32
  181. package/src/components/BaseSelect.stories.js +19 -19
  182. package/src/components/BaseShortcut.stories.js +28 -28
  183. package/src/components/BaseSideNavigation.stories.js +11 -11
  184. package/src/components/BaseSkeleton.stories.js +3 -3
  185. package/src/components/BaseStatistic.stories.js +16 -16
  186. package/src/components/BaseStepper.stories.js +29 -29
  187. package/src/components/BaseStepperItem.stories.js +11 -11
  188. package/src/components/BaseSwitch.stories.js +25 -25
  189. package/src/components/BaseSystemAlert.stories.js +7 -7
  190. package/src/components/BaseTable.stories.js +14 -16
  191. package/src/components/BaseTabs.stories.js +12 -13
  192. package/src/components/BaseTagAutocomplete.stories.js +19 -19
  193. package/src/components/BaseTagAutocompleteFetch.stories.js +11 -11
  194. package/src/components/BaseTextarea.stories.js +10 -10
  195. package/src/components/BaseTextareaAutoresize.stories.js +13 -13
  196. package/src/components/BaseTimePicker.stories.js +9 -9
  197. package/src/components/BaseTimeline.stories.js +22 -22
  198. package/src/components/BaseTimelineItem.stories.js +23 -22
  199. package/src/components/BaseToast.stories.js +6 -6
  200. package/src/components/BaseTooltip.stories.js +27 -27
  201. package/src/components/BaseUniqueCode.stories.js +7 -7
  202. package/src/stories/InputSizes.stories.js +13 -14
  203. package/src/stories/List.stories.js +92 -92
  204. package/src/stories/Show.stories.js +13 -14
@@ -1,34 +1,34 @@
1
- import BaseApp from './BaseApp.vue';
2
- import BaseMediaLibrary from './BaseMediaLibrary.vue';
3
- import ShowValue from '../../.storybook/components/ShowValue.vue';
4
- import { createFieldStory } from '@/../.storybook/utils';
1
+ import BaseApp from "./BaseApp.vue";
2
+ import BaseMediaLibrary from "./BaseMediaLibrary.vue";
3
+ import ShowValue from "../../.storybook/components/ShowValue.vue";
4
+ import { createFieldStory } from "@/../.storybook/utils";
5
5
 
6
6
  const mediaModel = {
7
- id: 'xxxxx',
8
- name: 'picture0-1-2dfjjje-23refg-45t',
9
- file_name: 'picture0-1-2dfjjje-23refg-45t.jpg',
10
- mime_type: 'image/jpg',
11
- url: 'https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=1200&h=800&q=80',
7
+ id: "xxxxx",
8
+ name: "picture0-1-2dfjjje-23refg-45t",
9
+ file_name: "picture0-1-2dfjjje-23refg-45t.jpg",
10
+ mime_type: "image/jpg",
11
+ url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=1200&h=800&q=80",
12
12
  size: 430 * 1024,
13
13
  };
14
14
 
15
15
  const mediaModel2 = {
16
- id: 'yyyyy',
17
- name: 'photo-1678729465418-ee8127e8c5cd',
18
- file_name: 'photo-1678729465418-ee8127e8c5cd.jpg',
19
- mime_type: 'image/jpg',
20
- url: 'https://images.unsplash.com/photo-1678729465418-ee8127e8c5cd?auto=format&fit=crop&w=800&q=80',
16
+ id: "yyyyy",
17
+ name: "photo-1678729465418-ee8127e8c5cd",
18
+ file_name: "photo-1678729465418-ee8127e8c5cd.jpg",
19
+ mime_type: "image/jpg",
20
+ url: "https://images.unsplash.com/photo-1678729465418-ee8127e8c5cd?auto=format&fit=crop&w=800&q=80",
21
21
  size: 430 * 1024,
22
22
  };
23
23
 
24
24
  export default {
25
- title: 'Form/BaseMediaLibrary',
25
+ title: "Form/BaseMediaLibrary",
26
26
  component: BaseMediaLibrary,
27
27
  args: {
28
28
  max: null,
29
29
  min: 2,
30
- acceptedExtensions: ['jpg', 'jpeg', 'png', 'webp'],
31
- uploadUrl: 'https://faker.witify.io/api/todos/upload',
30
+ acceptedExtensions: ["jpg", "jpeg", "png", "webp"],
31
+ uploadUrl: "https://faker.witify.io/api/todos/upload",
32
32
  },
33
33
  };
34
34
 
@@ -43,35 +43,35 @@ const Template = (args) => ({
43
43
  mediaModel,
44
44
  mediaModel2,
45
45
  {
46
- id: '1',
47
- url: '',
48
- mime_type: 'application/pdf',
49
- name: 'document',
50
- file_name: 'document.pdf',
46
+ id: "1",
47
+ url: "",
48
+ mime_type: "application/pdf",
49
+ name: "document",
50
+ file_name: "document.pdf",
51
51
  size: 40012,
52
52
  },
53
53
  {
54
- id: '2',
55
- url: '',
56
- mime_type: 'application/excel',
57
- name: 'finance-2022',
58
- file_name: 'finance-2022.xlsx',
54
+ id: "2",
55
+ url: "",
56
+ mime_type: "application/excel",
57
+ name: "finance-2022",
58
+ file_name: "finance-2022.xlsx",
59
59
  size: 5461,
60
60
  },
61
61
  {
62
- id: '3',
63
- url: '',
64
- mime_type: 'image/png',
65
- name: '34345-1',
66
- file_name: '34345-1.png',
62
+ id: "3",
63
+ url: "",
64
+ mime_type: "image/png",
65
+ name: "34345-1",
66
+ file_name: "34345-1.png",
67
67
  size: 40012,
68
68
  },
69
69
  {
70
- id: '4',
71
- url: '',
72
- mime_type: 'audio/mp3',
73
- name: 'test',
74
- file_name: 'test.mp3',
70
+ id: "4",
71
+ url: "",
72
+ mime_type: "audio/mp3",
73
+ name: "test",
74
+ file_name: "test.mp3",
75
75
  size: 792834,
76
76
  },
77
77
  ]);
@@ -88,30 +88,30 @@ const Template = (args) => ({
88
88
 
89
89
  export const LayoutGallery = Template.bind({});
90
90
  LayoutGallery.args = {
91
- layout: 'gallery',
91
+ layout: "gallery",
92
92
  };
93
93
 
94
94
  export const LayoutGalleryMultiple = Template.bind({});
95
95
  LayoutGalleryMultiple.args = {
96
- layout: 'gallery',
97
- multiple: true
96
+ layout: "gallery",
97
+ multiple: true,
98
98
  };
99
99
 
100
100
  export const LayoutGalleryDisabled = Template.bind({});
101
101
  LayoutGalleryDisabled.args = {
102
- layout: 'gallery',
102
+ layout: "gallery",
103
103
  disabled: true,
104
104
  };
105
105
 
106
106
  export const LayoutGalleryDraggable = Template.bind({});
107
107
  LayoutGalleryDraggable.args = {
108
- layout: 'gallery',
108
+ layout: "gallery",
109
109
  draggable: true,
110
110
  };
111
111
 
112
112
  export const LayoutGalleryDraggableDisabled = Template.bind({});
113
113
  LayoutGalleryDraggableDisabled.args = {
114
- layout: 'gallery',
114
+ layout: "gallery",
115
115
  disabled: true,
116
116
  draggable: true,
117
117
  };
@@ -120,24 +120,24 @@ LayoutGalleryDraggableDisabled.args = {
120
120
 
121
121
  export const LayoutList = Template.bind({});
122
122
  LayoutList.args = {
123
- layout: 'list',
123
+ layout: "list",
124
124
  };
125
125
 
126
126
  export const LayoutListDisabled = Template.bind({});
127
127
  LayoutListDisabled.args = {
128
- layout: 'list',
128
+ layout: "list",
129
129
  disabled: true,
130
130
  };
131
131
 
132
132
  export const LayoutListDraggable = Template.bind({});
133
133
  LayoutListDraggable.args = {
134
- layout: 'list',
134
+ layout: "list",
135
135
  draggable: true,
136
136
  };
137
137
 
138
138
  export const LayoutListDraggableDisabled = Template.bind({});
139
139
  LayoutListDraggableDisabled.args = {
140
- layout: 'list',
140
+ layout: "list",
141
141
  disabled: true,
142
142
  draggable: true,
143
143
  };
@@ -146,40 +146,40 @@ LayoutListDraggableDisabled.args = {
146
146
 
147
147
  export const LayoutImages = Template.bind({});
148
148
  LayoutImages.args = {
149
- pickerComponent: 'BaseFilePickerCrop',
150
- layout: 'images',
149
+ pickerComponent: "BaseFilePickerCrop",
150
+ layout: "images",
151
151
  };
152
152
 
153
153
  export const LayoutImagesDisabled = Template.bind({});
154
154
  LayoutImagesDisabled.args = {
155
- pickerComponent: 'BaseFilePickerCrop',
156
- layout: 'images',
155
+ pickerComponent: "BaseFilePickerCrop",
156
+ layout: "images",
157
157
  disabled: true,
158
158
  };
159
159
 
160
160
  export const LayoutImagesDraggable = Template.bind({});
161
161
  LayoutImagesDraggable.args = {
162
- pickerComponent: 'BaseFilePickerCrop',
163
- layout: 'images',
162
+ pickerComponent: "BaseFilePickerCrop",
163
+ layout: "images",
164
164
  draggable: true,
165
165
  };
166
166
 
167
167
  export const LayoutImagesDraggableDisabled = Template.bind({});
168
168
  LayoutImagesDraggableDisabled.args = {
169
- pickerComponent: 'BaseFilePickerCrop',
170
- layout: 'images',
169
+ pickerComponent: "BaseFilePickerCrop",
170
+ layout: "images",
171
171
  disabled: true,
172
172
  draggable: true,
173
173
  };
174
174
 
175
175
  export const Crop = Template.bind({});
176
176
  Crop.args = {
177
- pickerComponent: 'BaseFilePickerCrop',
177
+ pickerComponent: "BaseFilePickerCrop",
178
178
  cropper: {
179
179
  config: {
180
180
  maxWidth: 300,
181
181
  },
182
- preset: 'avatar',
182
+ preset: "avatar",
183
183
  presetOptions: {
184
184
  size: 300,
185
185
  },
@@ -193,7 +193,7 @@ MaxSize.args = {
193
193
 
194
194
  export const Field = createFieldStory({
195
195
  component: BaseMediaLibrary,
196
- componentName: 'BaseMediaLibrary',
196
+ componentName: "BaseMediaLibrary",
197
197
  });
198
198
 
199
199
  // Slots
@@ -1,7 +1,7 @@
1
- import BaseMediaPreview from './BaseMediaPreview.vue';
1
+ import BaseMediaPreview from "./BaseMediaPreview.vue";
2
2
 
3
3
  export default {
4
- title: 'Media/BaseMediaPreview',
4
+ title: "Media/BaseMediaPreview",
5
5
  component: BaseMediaPreview,
6
6
  };
7
7
 
@@ -20,9 +20,9 @@ const Template = (args) => ({
20
20
  export const Image = Template.bind({});
21
21
  Image.args = {
22
22
  media: {
23
- id: 'xxxxxxxxxxx',
24
- file_name: 'picture.jpg',
25
- mime_type: 'image/jpg',
23
+ id: "xxxxxxxxxxx",
24
+ file_name: "picture.jpg",
25
+ mime_type: "image/jpg",
26
26
  size: 430 * 1024,
27
27
  },
28
28
  };
@@ -30,10 +30,10 @@ Image.args = {
30
30
  export const ImageUrl = Template.bind({});
31
31
  ImageUrl.args = {
32
32
  media: {
33
- id: 'xxxxxxxxxxx',
34
- file_name: 'picture.jpg',
35
- mime_type: 'image/jpg',
36
- url: 'https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80',
33
+ id: "xxxxxxxxxxx",
34
+ file_name: "picture.jpg",
35
+ mime_type: "image/jpg",
36
+ url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80",
37
37
  size: 430 * 1024,
38
38
  },
39
39
  };
@@ -41,10 +41,10 @@ ImageUrl.args = {
41
41
  export const PDF = Template.bind({});
42
42
  PDF.args = {
43
43
  media: {
44
- id: 'xxxxxxxxxxx',
45
- file_name: 'picture.pdf',
46
- mime_type: 'application/pdf',
47
- url: 'https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80',
44
+ id: "xxxxxxxxxxx",
45
+ file_name: "picture.pdf",
46
+ mime_type: "application/pdf",
47
+ url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80",
48
48
  size: 430 * 1024,
49
49
  },
50
50
  };
@@ -52,10 +52,10 @@ PDF.args = {
52
52
  export const Music = Template.bind({});
53
53
  Music.args = {
54
54
  media: {
55
- id: 'xxxxxxxxxxx',
56
- file_name: 'picture.mp3',
57
- mime_type: 'audio/mpeg',
58
- url: 'https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80',
55
+ id: "xxxxxxxxxxx",
56
+ file_name: "picture.mp3",
57
+ mime_type: "audio/mpeg",
58
+ url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80",
59
59
  size: 430 * 1024,
60
60
  },
61
61
  };
@@ -63,10 +63,10 @@ Music.args = {
63
63
  export const Other = Template.bind({});
64
64
  Other.args = {
65
65
  media: {
66
- id: 'xxxxxxxxxxx',
67
- file_name: 'picture.mp3',
68
- mime_type: 'application/excel',
69
- url: 'https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80',
66
+ id: "xxxxxxxxxxx",
67
+ file_name: "picture.mp3",
68
+ mime_type: "application/excel",
69
+ url: "https://images.unsplash.com/photo-1670139018938-af8bf748a1bc?auto=format&fit=crop&w=800&h=800&q=80",
70
70
  size: 430 * 1024,
71
71
  },
72
72
  };
@@ -1,22 +1,22 @@
1
- import BaseMenu from './BaseMenu.vue';
2
- import { Icon as BaseIcon } from '@iconify/vue';
3
- import BaseAvatar from './BaseAvatar.vue';
1
+ import BaseMenu from "./BaseMenu.vue";
2
+ import { Icon as BaseIcon } from "@iconify/vue";
3
+ import BaseAvatar from "./BaseAvatar.vue";
4
4
 
5
5
  export default {
6
- title: 'Components/BaseMenu',
6
+ title: "Components/BaseMenu",
7
7
  component: BaseMenu,
8
8
  args: {
9
- position: 'bottom-right',
9
+ position: "bottom-right",
10
10
  },
11
11
  argTypes: {
12
12
  position: {
13
- control: { type: 'select' },
14
- options: ['bottom-left', 'bottom-right'],
13
+ control: { type: "select" },
14
+ options: ["bottom-left", "bottom-right"],
15
15
  },
16
16
  size: {
17
- control: { type: 'select' },
18
- options: ['xs', 'sm', 'md'],
19
- }
17
+ control: { type: "select" },
18
+ options: ["xs", "sm", "md"],
19
+ },
20
20
  },
21
21
  };
22
22
 
@@ -29,46 +29,46 @@ const Template = (args) => ({
29
29
  setup() {
30
30
  const items = [
31
31
  {
32
- label: 'Export file',
33
- icon: 'mdi-export',
32
+ label: "Export file",
33
+ icon: "mdi-export",
34
34
  action() {
35
- alert('Export!');
35
+ alert("Export!");
36
36
  },
37
37
  },
38
38
  {
39
- label: 'Open the Google Website on new tab',
40
- icon: 'mdi-google',
41
- href: 'https://google.com',
39
+ label: "Open the Google Website on new tab",
40
+ icon: "mdi-google",
41
+ href: "https://google.com",
42
42
  count: 1000,
43
43
  },
44
44
  {
45
- icon: 'mdi-access-point',
46
- label: 'Reconnect',
47
- to: 'home',
48
- color: 'success',
45
+ icon: "mdi-access-point",
46
+ label: "Reconnect",
47
+ to: "home",
48
+ color: "success",
49
49
  },
50
50
  {
51
- icon: 'mdi-archive',
52
- label: 'Archive',
53
- href: 'https://google.com',
54
- color: 'warning',
51
+ icon: "mdi-archive",
52
+ label: "Archive",
53
+ href: "https://google.com",
54
+ color: "warning",
55
55
  },
56
56
  {
57
- icon: 'mdi-trash-can',
58
- label: 'Delete',
59
- href: 'https://google.com',
60
- color: 'danger',
57
+ icon: "mdi-trash-can",
58
+ label: "Delete",
59
+ href: "https://google.com",
60
+ color: "danger",
61
61
  count: 1,
62
62
  },
63
63
  ];
64
64
 
65
65
  const user = {
66
- email: 'jane@witify.io',
67
- first_name: 'Jane',
68
- last_name: 'Doe',
69
- full_name: 'Jane Doe',
66
+ email: "jane@witify.io",
67
+ first_name: "Jane",
68
+ last_name: "Doe",
69
+ full_name: "Jane Doe",
70
70
  avatar_url:
71
- 'https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face',
71
+ "https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face",
72
72
  };
73
73
 
74
74
  args.items = items;
@@ -130,5 +130,5 @@ Demo.args = {};
130
130
 
131
131
  export const FixedWidth = Template.bind({});
132
132
  FixedWidth.args = {
133
- width: 280
133
+ width: 280,
134
134
  };
@@ -1,17 +1,17 @@
1
- import BaseModalCenter from './BaseModalCenter.vue';
2
- import { Icon as BaseIcon } from '@iconify/vue';
3
- import BaseAvatar from './BaseAvatar.vue';
1
+ import BaseModalCenter from "./BaseModalCenter.vue";
2
+ import { Icon as BaseIcon } from "@iconify/vue";
3
+ import BaseAvatar from "./BaseAvatar.vue";
4
4
 
5
5
  export default {
6
- title: 'Components/BaseModalCenter',
6
+ title: "Components/BaseModalCenter",
7
7
  component: BaseModalCenter,
8
8
  args: {
9
- position: 'bottom-right',
9
+ position: "bottom-right",
10
10
  },
11
11
  argTypes: {
12
12
  verticalAlign: {
13
- control: { type: 'select' },
14
- options: ['center', 'top'],
13
+ control: { type: "select" },
14
+ options: ["center", "top"],
15
15
  },
16
16
  },
17
17
  };
@@ -49,7 +49,7 @@ Demo.args = {};
49
49
 
50
50
  export const VerticalAlignTop = Template.bind({});
51
51
  VerticalAlignTop.args = {
52
- verticalAlign: 'top',
52
+ verticalAlign: "top",
53
53
  };
54
54
 
55
55
  export const NoCloseButton = Template.bind({});
@@ -59,7 +59,7 @@ NoCloseButton.args = {
59
59
 
60
60
  export const CustomBackdropClass = Template.bind({});
61
61
  CustomBackdropClass.args = {
62
- backdropClass: 'bg-red-500 bg-opacity-70',
62
+ backdropClass: "bg-red-500 bg-opacity-70",
63
63
  };
64
64
 
65
65
  export const PreventLeave = Template.bind({});
@@ -1,9 +1,9 @@
1
- import BaseModalSide from './BaseModalSide.vue';
2
- import { Icon as BaseIcon } from '@iconify/vue';
3
- import BaseAvatar from './BaseAvatar.vue';
1
+ import BaseModalSide from "./BaseModalSide.vue";
2
+ import { Icon as BaseIcon } from "@iconify/vue";
3
+ import BaseAvatar from "./BaseAvatar.vue";
4
4
 
5
5
  export default {
6
- title: 'Components/BaseModalSide',
6
+ title: "Components/BaseModalSide",
7
7
  component: BaseModalSide,
8
8
  args: {},
9
9
  };
@@ -41,12 +41,12 @@ Demo.args = {};
41
41
 
42
42
  export const CustomMaxWidth = Template.bind({});
43
43
  CustomMaxWidth.args = {
44
- maxWidth: '16rem',
44
+ maxWidth: "16rem",
45
45
  };
46
46
 
47
47
  export const CustomBackdropClass = Template.bind({});
48
48
  CustomBackdropClass.args = {
49
- backdropClass: 'bg-red-500 bg-opacity-70',
49
+ backdropClass: "bg-red-500 bg-opacity-70",
50
50
  };
51
51
 
52
52
  export const PreventLeave = Template.bind({});
@@ -1,16 +1,16 @@
1
- import BaseNavbar from './BaseNavbar.vue';
2
- import BaseNavbarItem from './BaseNavbarItem.vue';
3
- import BaseNavbarSideItem from './BaseNavbarSideItem.vue';
4
- import BaseAvatar from './BaseAvatar.vue';
5
- import BaseMenu from './BaseMenu.vue';
6
- import { Icon as BaseIcon } from '@iconify/vue';
1
+ import BaseNavbar from "./BaseNavbar.vue";
2
+ import BaseNavbarItem from "./BaseNavbarItem.vue";
3
+ import BaseNavbarSideItem from "./BaseNavbarSideItem.vue";
4
+ import BaseAvatar from "./BaseAvatar.vue";
5
+ import BaseMenu from "./BaseMenu.vue";
6
+ import { Icon as BaseIcon } from "@iconify/vue";
7
7
 
8
8
  export default {
9
- title: 'Navigation/BaseNavbar',
9
+ title: "Navigation/BaseNavbar",
10
10
  component: BaseNavbar,
11
11
  args: {},
12
12
  parameters: {
13
- layout: 'fullscreen',
13
+ layout: "fullscreen",
14
14
  },
15
15
  };
16
16
 
@@ -25,43 +25,43 @@ const Template = (args) => ({
25
25
  },
26
26
  setup() {
27
27
  const user = {
28
- email: 'jane@witify.io',
29
- first_name: 'Jane',
30
- last_name: 'Doe',
31
- full_name: 'Jane Doe',
28
+ email: "jane@witify.io",
29
+ first_name: "Jane",
30
+ last_name: "Doe",
31
+ full_name: "Jane Doe",
32
32
  avatar_url:
33
- 'https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face',
33
+ "https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face",
34
34
  };
35
35
 
36
36
  const menu = [
37
37
  {
38
- label: 'Home',
39
- to: '/',
38
+ label: "Home",
39
+ to: "/",
40
40
  },
41
41
  {
42
- label: 'Products',
43
- to: '/setup',
42
+ label: "Products",
43
+ to: "/setup",
44
44
  count: 234,
45
45
  },
46
46
  {
47
- label: 'Settings',
48
- to: '/settings',
47
+ label: "Settings",
48
+ to: "/settings",
49
49
  },
50
50
  ];
51
51
 
52
52
  const userMenu = [
53
53
  {
54
- label: 'Home',
55
- icon: 'heroicons:home',
56
- href: 'https://google.com',
54
+ label: "Home",
55
+ icon: "heroicons:home",
56
+ href: "https://google.com",
57
57
  },
58
58
  {
59
59
  meta: { line: true },
60
60
  },
61
61
  {
62
- label: 'Logout',
63
- icon: 'heroicons:arrow-right-on-rectangle',
64
- href: 'https://google.com',
62
+ label: "Logout",
63
+ icon: "heroicons:arrow-right-on-rectangle",
64
+ href: "https://google.com",
65
65
  },
66
66
  ];
67
67
 
@@ -79,7 +79,7 @@ const Template = (args) => ({
79
79
  <RouterLink to="/" class="flex flex-shrink-0 items-center">
80
80
  <img
81
81
  class="block h-8 w-auto"
82
- src="https://sprintify.witify.io/img/logo/logo-side.svg"
82
+ src="https://demo.sprintify.app/img/logo/logo-side.svg"
83
83
  alt="Sprintify"
84
84
  />
85
85
  </RouterLink>
@@ -1,7 +1,7 @@
1
- import BasePagination from './BasePagination.vue';
1
+ import BasePagination from "./BasePagination.vue";
2
2
 
3
3
  export default {
4
- title: 'Components/BasePagination',
4
+ title: "Components/BasePagination",
5
5
  component: BasePagination,
6
6
  args: {
7
7
  totalVisible: 12,
@@ -1,17 +1,17 @@
1
- import BaseContainer from './BaseContainer.vue';
2
- import BasePanel from './BasePanel.vue';
3
- import BaseCard from './BaseCard.vue';
4
- import BaseCardRow from './BaseCardRow.vue';
5
- import BaseInputLabel from './BaseInputLabel.vue';
6
- import BaseInput from './BaseInput.vue';
1
+ import BaseContainer from "./BaseContainer.vue";
2
+ import BasePanel from "./BasePanel.vue";
3
+ import BaseCard from "./BaseCard.vue";
4
+ import BaseCardRow from "./BaseCardRow.vue";
5
+ import BaseInputLabel from "./BaseInputLabel.vue";
6
+ import BaseInput from "./BaseInput.vue";
7
7
 
8
8
  export default {
9
- title: 'Layout/BasePanel',
9
+ title: "Layout/BasePanel",
10
10
  component: BasePanel,
11
11
  args: {
12
- title: 'General information',
12
+ title: "General information",
13
13
  description:
14
- 'Enter general user information, name and age. User must be more than 10 years old to participate.',
14
+ "Enter general user information, name and age. User must be more than 10 years old to participate.",
15
15
  },
16
16
  };
17
17