sprintify-ui 0.0.0

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 (176) hide show
  1. package/README.md +188 -0
  2. package/dist/types/src/components/BaseAlert.vue.d.ts +51 -0
  3. package/dist/types/src/components/BaseAutocomplete.vue.d.ts +268 -0
  4. package/dist/types/src/components/BaseAutocompleteFetch.vue.d.ts +273 -0
  5. package/dist/types/src/components/BaseAvatar.vue.d.ts +126 -0
  6. package/dist/types/src/components/BaseBadge.vue.d.ts +94 -0
  7. package/dist/types/src/components/BaseBelongsTo.vue.d.ts +268 -0
  8. package/dist/types/src/components/BaseBoolean.vue.d.ts +64 -0
  9. package/dist/types/src/components/BaseBreadcrumbs.vue.d.ts +66 -0
  10. package/dist/types/src/components/BaseButton.vue.d.ts +23 -0
  11. package/dist/types/src/components/BaseCard.vue.d.ts +74 -0
  12. package/dist/types/src/components/BaseCardRow.vue.d.ts +16 -0
  13. package/dist/types/src/components/BaseClipboard.vue.d.ts +74 -0
  14. package/dist/types/src/components/BaseContainer.vue.d.ts +34 -0
  15. package/dist/types/src/components/BaseCounter.vue.d.ts +125 -0
  16. package/dist/types/src/components/BaseDataIterator.vue.d.ts +345 -0
  17. package/dist/types/src/components/BaseDataTable.vue.d.ts +657 -0
  18. package/dist/types/src/components/BaseDataTableToggleColumns.vue.d.ts +1281 -0
  19. package/dist/types/src/components/BaseDatePicker.vue.d.ts +190 -0
  20. package/dist/types/src/components/BaseDateSelect.vue.d.ts +171 -0
  21. package/dist/types/src/components/BaseDescriptionList.vue.d.ts +48 -0
  22. package/dist/types/src/components/BaseDescriptionListItem.vue.d.ts +49 -0
  23. package/dist/types/src/components/BaseDialog.vue.d.ts +160 -0
  24. package/dist/types/src/components/BaseFilePicker.vue.d.ts +44 -0
  25. package/dist/types/src/components/BaseFileUploader.vue.d.ts +220 -0
  26. package/dist/types/src/components/BaseInput.vue.d.ts +209 -0
  27. package/dist/types/src/components/BaseInputLabel.vue.d.ts +31 -0
  28. package/dist/types/src/components/BaseLoadingCover.vue.d.ts +166 -0
  29. package/dist/types/src/components/BaseLoadingPage.vue.d.ts +2 -0
  30. package/dist/types/src/components/BaseMediaLibrary.vue.d.ts +269 -0
  31. package/dist/types/src/components/BaseMediaLibraryItem.vue.d.ts +75 -0
  32. package/dist/types/src/components/BaseMenu.vue.d.ts +117 -0
  33. package/dist/types/src/components/BaseMenuItem.vue.d.ts +147 -0
  34. package/dist/types/src/components/BaseModalCenter.vue.d.ts +141 -0
  35. package/dist/types/src/components/BaseModalSide.vue.d.ts +141 -0
  36. package/dist/types/src/components/BaseNavbar.vue.d.ts +79 -0
  37. package/dist/types/src/components/BaseNavbarItem.vue.d.ts +80 -0
  38. package/dist/types/src/components/BaseNavbarItemContent.vue.d.ts +127 -0
  39. package/dist/types/src/components/BasePagination.vue.d.ts +25 -0
  40. package/dist/types/src/components/BasePaginationSimple.vue.d.ts +25 -0
  41. package/dist/types/src/components/BasePanel.vue.d.ts +31 -0
  42. package/dist/types/src/components/BasePassword.vue.d.ts +66 -0
  43. package/dist/types/src/components/BaseProcessRing.vue.d.ts +36 -0
  44. package/dist/types/src/components/BaseReadMore.vue.d.ts +74 -0
  45. package/dist/types/src/components/BaseSelect.vue.d.ts +55 -0
  46. package/dist/types/src/components/BaseSideNavigation.vue.d.ts +48 -0
  47. package/dist/types/src/components/BaseSideNavigationItem.vue.d.ts +92 -0
  48. package/dist/types/src/components/BaseSkeleton.vue.d.ts +93 -0
  49. package/dist/types/src/components/BaseSpinner.vue.d.ts +2 -0
  50. package/dist/types/src/components/BaseSwitch.vue.d.ts +39 -0
  51. package/dist/types/src/components/BaseSystemAlert.vue.d.ts +141 -0
  52. package/dist/types/src/components/BaseTabItem.vue.d.ts +70 -0
  53. package/dist/types/src/components/BaseTable.vue.d.ts +467 -0
  54. package/dist/types/src/components/BaseTableColumn.vue.d.ts +164 -0
  55. package/dist/types/src/components/BaseTabs.vue.d.ts +48 -0
  56. package/dist/types/src/components/BaseTagAutocomplete.vue.d.ts +274 -0
  57. package/dist/types/src/components/BaseTagAutocompleteFetch.vue.d.ts +251 -0
  58. package/dist/types/src/components/BaseTextarea.vue.d.ts +228 -0
  59. package/dist/types/src/components/BaseTextareaAutoresize.vue.d.ts +44 -0
  60. package/dist/types/src/components/BaseTitle.vue.d.ts +45 -0
  61. package/dist/types/src/components/BaseWordCount.vue.d.ts +31 -0
  62. package/dist/types/src/components/SlotComponent.d.ts +43 -0
  63. package/dist/types/src/components/index.d.ts +2 -0
  64. package/dist/types/src/composables/breakpoints.d.ts +12 -0
  65. package/dist/types/src/composables/modal.d.ts +6 -0
  66. package/dist/types/src/constants/MyConstants.d.ts +1 -0
  67. package/dist/types/src/constants/index.d.ts +2 -0
  68. package/dist/types/src/index.d.ts +253 -0
  69. package/dist/types/src/types/Media.d.ts +8 -0
  70. package/dist/types/src/types/UploadedFile.d.ts +9 -0
  71. package/dist/types/src/types/User.d.ts +6 -0
  72. package/dist/types/src/types/types.d.ts +88 -0
  73. package/dist/types/src/utils/fileSizeFormat.d.ts +1 -0
  74. package/dist/types/src/utils/index.d.ts +4 -0
  75. package/dist/types/src/utils/scrollPreventer.d.ts +4 -0
  76. package/dist/types/src/utils/toHumanList.d.ts +1 -0
  77. package/package.json +99 -0
  78. package/src/assets/button.css +80 -0
  79. package/src/assets/form.css +15 -0
  80. package/src/assets/main.css +3 -0
  81. package/src/assets/pikaday.css +134 -0
  82. package/src/assets/tailwind.css +5 -0
  83. package/src/components/BaseAlert.stories.js +52 -0
  84. package/src/components/BaseAlert.vue +152 -0
  85. package/src/components/BaseAutocomplete.stories.js +127 -0
  86. package/src/components/BaseAutocomplete.vue +376 -0
  87. package/src/components/BaseAutocompleteFetch.stories.js +121 -0
  88. package/src/components/BaseAutocompleteFetch.vue +185 -0
  89. package/src/components/BaseAvatar.stories.js +39 -0
  90. package/src/components/BaseAvatar.vue +92 -0
  91. package/src/components/BaseBadge.stories.js +61 -0
  92. package/src/components/BaseBadge.vue +70 -0
  93. package/src/components/BaseBelongsTo.stories.js +130 -0
  94. package/src/components/BaseBelongsTo.vue +122 -0
  95. package/src/components/BaseBoolean.stories.js +35 -0
  96. package/src/components/BaseBoolean.vue +29 -0
  97. package/src/components/BaseBreadcrumbs.stories.js +45 -0
  98. package/src/components/BaseBreadcrumbs.vue +78 -0
  99. package/src/components/BaseButton.stories.js +80 -0
  100. package/src/components/BaseButton.vue +39 -0
  101. package/src/components/BaseCard.stories.js +61 -0
  102. package/src/components/BaseCard.vue +49 -0
  103. package/src/components/BaseCardRow.vue +34 -0
  104. package/src/components/BaseClipboard.stories.js +31 -0
  105. package/src/components/BaseClipboard.vue +96 -0
  106. package/src/components/BaseContainer.stories.js +34 -0
  107. package/src/components/BaseContainer.vue +50 -0
  108. package/src/components/BaseCounter.stories.js +32 -0
  109. package/src/components/BaseCounter.vue +72 -0
  110. package/src/components/BaseDataIterator.stories.js +90 -0
  111. package/src/components/BaseDataIterator.vue +658 -0
  112. package/src/components/BaseDataTable.stories.js +95 -0
  113. package/src/components/BaseDataTable.vue +489 -0
  114. package/src/components/BaseDataTableToggleColumns.vue +69 -0
  115. package/src/components/BaseDatePicker.stories.js +53 -0
  116. package/src/components/BaseDatePicker.vue +166 -0
  117. package/src/components/BaseDateSelect.vue +192 -0
  118. package/src/components/BaseDescriptionList.vue +11 -0
  119. package/src/components/BaseDescriptionListItem.vue +12 -0
  120. package/src/components/BaseDialog.vue +104 -0
  121. package/src/components/BaseFilePicker.vue +101 -0
  122. package/src/components/BaseFileUploader.vue +166 -0
  123. package/src/components/BaseInput.vue +82 -0
  124. package/src/components/BaseInputLabel.vue +26 -0
  125. package/src/components/BaseLoadingCover.vue +84 -0
  126. package/src/components/BaseLoadingPage.vue +19 -0
  127. package/src/components/BaseMediaLibrary.vue +281 -0
  128. package/src/components/BaseMediaLibraryItem.vue +92 -0
  129. package/src/components/BaseMenu.vue +114 -0
  130. package/src/components/BaseMenuItem.vue +93 -0
  131. package/src/components/BaseModalCenter.vue +107 -0
  132. package/src/components/BaseModalSide.vue +112 -0
  133. package/src/components/BaseNavbar.vue +72 -0
  134. package/src/components/BaseNavbarItem.vue +72 -0
  135. package/src/components/BaseNavbarItemContent.vue +57 -0
  136. package/src/components/BasePagination.vue +82 -0
  137. package/src/components/BasePaginationSimple.vue +60 -0
  138. package/src/components/BasePanel.vue +39 -0
  139. package/src/components/BasePassword.vue +73 -0
  140. package/src/components/BaseProcessRing.vue +56 -0
  141. package/src/components/BaseReadMore.vue +72 -0
  142. package/src/components/BaseSelect.vue +59 -0
  143. package/src/components/BaseSideNavigation.vue +7 -0
  144. package/src/components/BaseSideNavigationItem.vue +42 -0
  145. package/src/components/BaseSkeleton.vue +24 -0
  146. package/src/components/BaseSpinner.vue +47 -0
  147. package/src/components/BaseSwitch.vue +87 -0
  148. package/src/components/BaseSystemAlert.vue +86 -0
  149. package/src/components/BaseTabItem.vue +30 -0
  150. package/src/components/BaseTable.vue +781 -0
  151. package/src/components/BaseTableColumn.vue +109 -0
  152. package/src/components/BaseTabs.vue +12 -0
  153. package/src/components/BaseTagAutocomplete.vue +385 -0
  154. package/src/components/BaseTagAutocompleteFetch.vue +154 -0
  155. package/src/components/BaseTextarea.vue +73 -0
  156. package/src/components/BaseTextareaAutoresize.vue +117 -0
  157. package/src/components/BaseTitle.vue +80 -0
  158. package/src/components/BaseWordCount.vue +36 -0
  159. package/src/components/SlotComponent.ts +37 -0
  160. package/src/components/index.ts +5 -0
  161. package/src/composables/breakpoints.ts +6 -0
  162. package/src/composables/modal.ts +77 -0
  163. package/src/constants/MyConstants.ts +1 -0
  164. package/src/constants/index.ts +5 -0
  165. package/src/env.d.ts +15 -0
  166. package/src/index.ts +70 -0
  167. package/src/lang/en.json +56 -0
  168. package/src/lang/fr.json +56 -0
  169. package/src/types/Media.ts +9 -0
  170. package/src/types/UploadedFile.ts +10 -0
  171. package/src/types/User.ts +7 -0
  172. package/src/types/types.ts +112 -0
  173. package/src/utils/fileSizeFormat.ts +15 -0
  174. package/src/utils/index.ts +5 -0
  175. package/src/utils/scrollPreventer.ts +21 -0
  176. package/src/utils/toHumanList.ts +20 -0
@@ -0,0 +1,253 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { App } from 'vue';
3
+ import { I18n } from 'vue-i18n';
4
+ declare const messages: {
5
+ en: {
6
+ sui: {
7
+ and: string;
8
+ apply_filters: string;
9
+ autocomplete_placeholder: string;
10
+ cancel: string;
11
+ clear: string;
12
+ click_or_select_date: string;
13
+ click_to_copy: string;
14
+ columns: string;
15
+ confirm: string;
16
+ copied: string;
17
+ create_new: string;
18
+ day: string;
19
+ delete_record: string;
20
+ delete_record_description: string;
21
+ deselect_all: string;
22
+ drop_or_click_to_upload: string;
23
+ error: string;
24
+ file_must_be_of_type: string;
25
+ filters: string;
26
+ min_x_characters: string;
27
+ month: string;
28
+ next: string;
29
+ next_month: string;
30
+ nothing_found: string;
31
+ or: string;
32
+ pagination_detail: string;
33
+ previous: string;
34
+ previous_month: string;
35
+ read_more: string;
36
+ remove: string;
37
+ remove_file: string;
38
+ remove_file_description: string;
39
+ select_an_item: string;
40
+ select_an_option: string;
41
+ success: string;
42
+ the_file_size_must_not_exceed_x: string;
43
+ the_file_type_is_invalid: string;
44
+ type_to_start_your_search: string;
45
+ up_to_x: string;
46
+ whoops: string;
47
+ x_rows_selected: string;
48
+ year: string;
49
+ yes_delete: string;
50
+ you_can_upload_up_to_n_files: string;
51
+ you_cannot_select_more_than_x_items: string;
52
+ units: {
53
+ b: string;
54
+ gb: string;
55
+ kb: string;
56
+ mb: string;
57
+ tb: string;
58
+ };
59
+ };
60
+ };
61
+ fr: {
62
+ sui: {
63
+ and: string;
64
+ apply_filters: string;
65
+ autocomplete_placeholder: string;
66
+ cancel: string;
67
+ clear: string;
68
+ click_or_select_date: string;
69
+ click_to_copy: string;
70
+ columns: string;
71
+ confirm: string;
72
+ copied: string;
73
+ create_new: string;
74
+ day: string;
75
+ delete_record: string;
76
+ delete_record_description: string;
77
+ deselect_all: string;
78
+ drop_or_click_to_upload: string;
79
+ error: string;
80
+ file_must_be_of_type: string;
81
+ filters: string;
82
+ min_x_characters: string;
83
+ month: string;
84
+ next: string;
85
+ next_month: string;
86
+ nothing_found: string;
87
+ or: string;
88
+ pagination_detail: string;
89
+ previous: string;
90
+ previous_month: string;
91
+ read_more: string;
92
+ remove: string;
93
+ remove_file: string;
94
+ remove_file_description: string;
95
+ select_an_item: string;
96
+ select_an_option: string;
97
+ success: string;
98
+ the_file_size_must_not_exceed_x: string;
99
+ the_file_type_is_invalid: string;
100
+ type_to_start_your_search: string;
101
+ up_to_x: string;
102
+ whoops: string;
103
+ x_rows_selected: string;
104
+ year: string;
105
+ yes_delete: string;
106
+ you_can_upload_up_to_n_files: string;
107
+ you_cannot_select_more_than_x_items: string;
108
+ units: {
109
+ b: string;
110
+ gb: string;
111
+ kb: string;
112
+ mb: string;
113
+ tb: string;
114
+ };
115
+ };
116
+ };
117
+ };
118
+ interface SprintifyUIConfig {
119
+ i18n?: I18n<typeof messages, {}, {}, string, true>;
120
+ http?: AxiosInstance;
121
+ upload_url?: string;
122
+ formatQueryString?: (params: Record<string, any>) => string;
123
+ parseQueryString?: (params: string) => Record<string, any>;
124
+ }
125
+ declare const pluginConfig: {
126
+ i18n: I18n<{
127
+ en: {
128
+ sui: {
129
+ and: string;
130
+ apply_filters: string;
131
+ autocomplete_placeholder: string;
132
+ cancel: string;
133
+ clear: string;
134
+ click_or_select_date: string;
135
+ click_to_copy: string;
136
+ columns: string;
137
+ confirm: string;
138
+ copied: string;
139
+ create_new: string;
140
+ day: string;
141
+ delete_record: string;
142
+ delete_record_description: string;
143
+ deselect_all: string;
144
+ drop_or_click_to_upload: string;
145
+ error: string;
146
+ file_must_be_of_type: string;
147
+ filters: string;
148
+ min_x_characters: string;
149
+ month: string;
150
+ next: string;
151
+ next_month: string;
152
+ nothing_found: string;
153
+ or: string;
154
+ pagination_detail: string;
155
+ previous: string;
156
+ previous_month: string;
157
+ read_more: string;
158
+ remove: string;
159
+ remove_file: string;
160
+ remove_file_description: string;
161
+ select_an_item: string;
162
+ select_an_option: string;
163
+ success: string;
164
+ the_file_size_must_not_exceed_x: string;
165
+ the_file_type_is_invalid: string;
166
+ type_to_start_your_search: string;
167
+ up_to_x: string;
168
+ whoops: string;
169
+ x_rows_selected: string;
170
+ year: string;
171
+ yes_delete: string;
172
+ you_can_upload_up_to_n_files: string;
173
+ you_cannot_select_more_than_x_items: string;
174
+ units: {
175
+ b: string;
176
+ gb: string;
177
+ kb: string;
178
+ mb: string;
179
+ tb: string;
180
+ };
181
+ };
182
+ };
183
+ fr: {
184
+ sui: {
185
+ and: string;
186
+ apply_filters: string;
187
+ autocomplete_placeholder: string;
188
+ cancel: string;
189
+ clear: string;
190
+ click_or_select_date: string;
191
+ click_to_copy: string;
192
+ columns: string;
193
+ confirm: string;
194
+ copied: string;
195
+ create_new: string;
196
+ day: string;
197
+ delete_record: string;
198
+ delete_record_description: string;
199
+ deselect_all: string;
200
+ drop_or_click_to_upload: string;
201
+ error: string;
202
+ file_must_be_of_type: string;
203
+ filters: string;
204
+ min_x_characters: string;
205
+ month: string;
206
+ next: string;
207
+ next_month: string;
208
+ nothing_found: string;
209
+ or: string;
210
+ pagination_detail: string;
211
+ previous: string;
212
+ previous_month: string;
213
+ read_more: string;
214
+ remove: string;
215
+ remove_file: string;
216
+ remove_file_description: string;
217
+ select_an_item: string;
218
+ select_an_option: string;
219
+ success: string;
220
+ the_file_size_must_not_exceed_x: string;
221
+ the_file_type_is_invalid: string;
222
+ type_to_start_your_search: string;
223
+ up_to_x: string;
224
+ whoops: string;
225
+ x_rows_selected: string;
226
+ year: string;
227
+ yes_delete: string;
228
+ you_can_upload_up_to_n_files: string;
229
+ you_cannot_select_more_than_x_items: string;
230
+ units: {
231
+ b: string;
232
+ gb: string;
233
+ kb: string;
234
+ mb: string;
235
+ tb: string;
236
+ };
237
+ };
238
+ };
239
+ }, {}, {}, string, true>;
240
+ http: AxiosInstance;
241
+ upload_url: string;
242
+ formatQueryString(params: Record<string, any>): string;
243
+ parseQueryString(params: string): Record<string, any>;
244
+ };
245
+ declare function install(app: App, config: SprintifyUIConfig): void;
246
+ declare const _default: {
247
+ install: typeof install;
248
+ };
249
+ export default _default;
250
+ export * from './components';
251
+ export * from './constants';
252
+ export * from './utils';
253
+ export { pluginConfig as config };
@@ -0,0 +1,8 @@
1
+ interface Media {
2
+ id: string;
3
+ file_name: string;
4
+ size: number;
5
+ mime_type: string;
6
+ url: string;
7
+ }
8
+ export { Media };
@@ -0,0 +1,9 @@
1
+ interface UploadedFile {
2
+ id: string;
3
+ file_name: string;
4
+ size: number;
5
+ mime_type: string;
6
+ original_file?: File;
7
+ data_url?: string;
8
+ }
9
+ export { UploadedFile };
@@ -0,0 +1,6 @@
1
+ interface User {
2
+ full_name: string;
3
+ email?: string;
4
+ avatar_url?: string;
5
+ }
6
+ export { User };
@@ -0,0 +1,88 @@
1
+ import { RouteLocationRaw } from 'vue-router';
2
+ import { UploadedFile } from './UploadedFile';
3
+ export interface Breadcrumb {
4
+ icon?: string;
5
+ to: RouteLocationRaw;
6
+ label: string;
7
+ }
8
+ export interface DataTableQuery extends Record<string, any> {
9
+ page?: number;
10
+ sort?: string;
11
+ search?: string;
12
+ filter?: Record<string, any>;
13
+ }
14
+ export type OptionValue = string | number;
15
+ export type Option = Record<string, any>;
16
+ export type Selection = Record<string, any> | null | undefined;
17
+ export type NormalizedOption = {
18
+ option: Option;
19
+ value: OptionValue;
20
+ label: string;
21
+ };
22
+ export type NormalizedSelection = NormalizedOption | null | undefined;
23
+ export type MediaLibraryPayload = {
24
+ to_remove: string[];
25
+ to_add: UploadedFile[];
26
+ };
27
+ export interface PaginationMetadata {
28
+ current_page: number;
29
+ per_page: number;
30
+ last_page: number;
31
+ total: number;
32
+ }
33
+ export interface CollectionItem {
34
+ [key: string]: any;
35
+ }
36
+ export type Collection = CollectionItem[];
37
+ export interface ResourceCollection {
38
+ meta: PaginationMetadata;
39
+ data: Collection;
40
+ }
41
+ export interface PaginatedCollection extends PaginationMetadata {
42
+ data: Collection;
43
+ }
44
+ export interface MenuItemInterface {
45
+ label?: string;
46
+ icon?: string;
47
+ action?: () => Promise<void> | void;
48
+ to?: RouteLocationRaw;
49
+ href?: string;
50
+ line?: boolean;
51
+ count?: number;
52
+ color?: 'dark' | 'light' | 'danger' | 'success' | 'warning';
53
+ }
54
+ export interface ActionItem {
55
+ label: string;
56
+ type: 'RouterLink' | 'a' | 'button';
57
+ href?: string;
58
+ to?: RouteLocationRaw;
59
+ action?: () => Promise<void> | void;
60
+ icon?: string;
61
+ count?: number;
62
+ meta?: Record<string, any>;
63
+ }
64
+ export interface ActionSection {
65
+ title: string;
66
+ actions: ActionItem[];
67
+ }
68
+ export type Row = Record<string, any>;
69
+ export interface BaseTableColumn {
70
+ id: string;
71
+ label: string;
72
+ field: string;
73
+ meta: undefined | Record<string, any>;
74
+ newKey: number;
75
+ numeric: boolean;
76
+ position: 'left' | 'right';
77
+ searchable: boolean;
78
+ sortable: boolean;
79
+ visible: boolean;
80
+ alwaysVisible: boolean;
81
+ optional: boolean;
82
+ width: number;
83
+ style: {
84
+ width: undefined | number;
85
+ };
86
+ thAttrs: (column: BaseTableColumn) => Record<string, any>;
87
+ tdAttrs: (row: Row, column: BaseTableColumn) => Record<string, any>;
88
+ }
@@ -0,0 +1 @@
1
+ export default function (size: number): string;
@@ -0,0 +1,4 @@
1
+ import toHumanList from './toHumanList';
2
+ import fileSizeFormat from './fileSizeFormat';
3
+ import { disableScroll, enableScroll } from './scrollPreventer';
4
+ export { toHumanList, fileSizeFormat, disableScroll, enableScroll };
@@ -0,0 +1,4 @@
1
+ import { ScrollableTarget } from 'scroll-lock';
2
+ declare function disableScroll(allow?: ScrollableTarget | null): void;
3
+ declare function enableScroll(): void;
4
+ export { disableScroll, enableScroll };
@@ -0,0 +1 @@
1
+ export default function (list: string[], conjunction?: string): string;
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "sprintify-ui",
3
+ "version": "0.0.0",
4
+ "scripts": {
5
+ "build": "rimraf dist && vue-tsc && vite build",
6
+ "docs:dev": "vitepress dev docs",
7
+ "docs:build": "vitepress build docs",
8
+ "docs:serve": "vitepress serve docs",
9
+ "storybook": "start-storybook -p 6006",
10
+ "build-storybook": "build-storybook"
11
+ },
12
+ "peerDependencies": {
13
+ "@headlessui/vue": "^1.7.0",
14
+ "@tailwindcss/aspect-ratio": "^0.4.2",
15
+ "@tailwindcss/forms": "^0.5.3",
16
+ "@tailwindcss/line-clamp": "^0.4.2",
17
+ "@tailwindcss/typography": "^0.5.8",
18
+ "@vueuse/core": "^9.0.0",
19
+ "axios": "^1.0.0",
20
+ "lodash": "^4.17.21",
21
+ "luxon": "^3.0.0",
22
+ "pinia": "^2.0.0",
23
+ "qs": "^6.0.0",
24
+ "tailwindcss": "^3.0.0",
25
+ "vue": "^3.0.0",
26
+ "vue-i18n": "^9.0.0",
27
+ "vue-router": "^4.0.0"
28
+ },
29
+ "devDependencies": {
30
+ "@babel/core": "^7.20.2",
31
+ "@headlessui/vue": "^1.7.4",
32
+ "@iconify/vue": "^4.0.0",
33
+ "@storybook/addon-actions": "^6.5.13",
34
+ "@storybook/addon-essentials": "^6.5.13",
35
+ "@storybook/addon-interactions": "^6.5.13",
36
+ "@storybook/addon-links": "^6.5.13",
37
+ "@storybook/builder-vite": "^0.2.5",
38
+ "@storybook/testing-library": "^0.0.13",
39
+ "@storybook/vue3": "^6.5.13",
40
+ "@tailwindcss/aspect-ratio": "^0.4.2",
41
+ "@tailwindcss/forms": "^0.5.3",
42
+ "@tailwindcss/line-clamp": "^0.4.2",
43
+ "@tailwindcss/typography": "^0.5.8",
44
+ "@types/luxon": "^3.1.0",
45
+ "@types/node": "^17.0.45",
46
+ "@types/object-hash": "^2.2.1",
47
+ "@types/pikaday": "^1.7.6",
48
+ "@types/qs": "^6.9.7",
49
+ "@types/scroll-lock": "^2.1.0",
50
+ "@typescript-eslint/eslint-plugin": "^5.42.1",
51
+ "@typescript-eslint/parser": "^5.42.1",
52
+ "@vitejs/plugin-vue": "^3.2.0",
53
+ "@vue/eslint-config-typescript": "^11.0.2",
54
+ "@vueuse/core": "^9.5.0",
55
+ "autoprefixer": "^10.4.13",
56
+ "axios": "^1.1.3",
57
+ "babel-loader": "^8.3.0",
58
+ "eslint": "^8.27.0",
59
+ "eslint-config-prettier": "^8.5.0",
60
+ "eslint-plugin-import": "^2.26.0",
61
+ "eslint-plugin-storybook": "^0.6.7",
62
+ "eslint-plugin-vue": "^9.7.0",
63
+ "eslint-plugin-vue-scoped-css": "^2.2.0",
64
+ "lodash": "^4.17.21",
65
+ "luxon": "^3.1.0",
66
+ "object-hash": "^3.0.0",
67
+ "pikaday": "^1.8.2",
68
+ "pinia": "^2.0.23",
69
+ "postcss": "^8.4.19",
70
+ "postcss-import": "^15.0.0",
71
+ "prettier": "^2.7.1",
72
+ "prettier-plugin-tailwindcss": "^0.1.13",
73
+ "qs": "^6.11.0",
74
+ "rimraf": "^3.0.2",
75
+ "scroll-lock": "^2.1.5",
76
+ "tailwindcss": "^3.2.4",
77
+ "typescript": "^4.4.4",
78
+ "unplugin-auto-import": "^0.11.4",
79
+ "vite": "^3.2.4",
80
+ "vitepress": "^0.21.6",
81
+ "vue": "^3.2.25",
82
+ "vue-i18n": "^9.2.2",
83
+ "vue-loader": "^16.8.3",
84
+ "vue-router": "^4.1.6",
85
+ "vue-tsc": "^1.0.9"
86
+ },
87
+ "files": [
88
+ "src",
89
+ "dist"
90
+ ],
91
+ "types": "./dist/types/index.d.ts",
92
+ "module": "./dist/sprintify-ui.es.js",
93
+ "exports": {
94
+ ".": {
95
+ "import": "./dist/sprintify-ui.es.js"
96
+ },
97
+ "./dist/style.css": "./dist/style.css"
98
+ }
99
+ }
@@ -0,0 +1,80 @@
1
+ .btn {
2
+ @apply text-center relative inline-block cursor-pointer select-none rounded-md border px-4 py-2.5 text-sm transition-colors duration-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50;
3
+ @apply btn-default;
4
+ }
5
+
6
+ .btn.btn-xs {
7
+ @apply px-2 py-1 text-xs leading-4;
8
+ }
9
+
10
+ .btn.btn-sm {
11
+ @apply px-3 py-2 text-sm leading-4;
12
+ }
13
+
14
+ .btn.btn-md {
15
+ @apply px-4 py-2.5 text-sm;
16
+ }
17
+
18
+ .btn.btn-lg {
19
+ @apply px-5 py-3 text-base;
20
+ }
21
+
22
+ .btn.btn-xl {
23
+ @apply px-6 py-4 text-base;
24
+ }
25
+
26
+ .btn-default {
27
+ @apply border-slate-300 bg-white text-slate-600 hover:bg-slate-100 focus-visible:ring-primary-500 disabled:hover:bg-white;
28
+ }
29
+
30
+ .btn.btn-primary {
31
+ @apply border-transparent bg-primary-500 text-white hover:bg-primary-700 focus-visible:ring-primary-500 disabled:hover:bg-primary-500;
32
+ }
33
+
34
+ .btn.btn-secondary {
35
+ @apply border-transparent bg-primary-200 text-primary-700 hover:bg-primary-100 focus-visible:ring-primary-500 disabled:hover:bg-primary-100;
36
+ }
37
+
38
+ .btn.btn-secondary-outline {
39
+ @apply border-primary-400 bg-primary-200 text-primary-700 hover:bg-primary-100 focus-visible:ring-primary-500 disabled:hover:bg-primary-100;
40
+ }
41
+
42
+ .btn.btn-slate-100 {
43
+ @apply border-transparent bg-slate-100 text-slate-700 hover:bg-slate-200 focus-visible:ring-slate-300 disabled:hover:bg-slate-50;
44
+ }
45
+
46
+ .btn.btn-slate-100-outline {
47
+ @apply border-slate-200 bg-slate-100 text-slate-700 hover:bg-slate-50 focus-visible:ring-slate-300 disabled:hover:bg-slate-50;
48
+ }
49
+
50
+ .btn.btn-slate-200 {
51
+ @apply border-transparent bg-slate-200 text-slate-800 hover:bg-slate-300 focus-visible:ring-slate-300 disabled:hover:bg-slate-50;
52
+ }
53
+
54
+ .btn.btn-slate-200-outline {
55
+ @apply border-slate-300 bg-slate-200 text-slate-800 hover:bg-slate-300 focus-visible:ring-slate-300 disabled:hover:bg-slate-50;
56
+ }
57
+
58
+ .btn.btn-white {
59
+ @apply border-transparent bg-white text-slate-600 hover:bg-slate-100 focus-visible:ring-primary-500 disabled:hover:bg-white;
60
+ }
61
+
62
+ .btn.btn-white-outline {
63
+ @apply btn-default;
64
+ }
65
+
66
+ .btn.btn-white-outline-primary {
67
+ @apply border-primary-400 bg-white text-primary-600 hover:bg-primary-100 focus-visible:ring-primary-500 disabled:hover:bg-white;
68
+ }
69
+
70
+ .btn.btn-black {
71
+ @apply border-transparent bg-slate-900 text-white hover:bg-slate-800 focus-visible:ring-slate-900 disabled:hover:bg-slate-900;
72
+ }
73
+
74
+ .btn.btn-danger {
75
+ @apply border-transparent bg-red-600 text-white hover:bg-red-700 focus-visible:ring-red-300 disabled:hover:bg-red-600;
76
+ }
77
+
78
+ .btn.btn-warning {
79
+ @apply border-transparent bg-yellow-400 text-yellow-900 hover:bg-yellow-200 focus-visible:ring-yellow-300 disabled:hover:bg-yellow-300;
80
+ }
@@ -0,0 +1,15 @@
1
+
2
+ .form-input-label {
3
+ @apply block text-sm leading-tight text-slate-600;
4
+ }
5
+
6
+ .form-input-error {
7
+ @apply text-sm leading-tight text-red-600;
8
+ }
9
+
10
+ /** Placehoder color */
11
+
12
+ input,
13
+ textarea {
14
+ @apply placeholder-slate-400;
15
+ }
@@ -0,0 +1,3 @@
1
+ @import './pikaday.css';
2
+ @import './form.css';
3
+ @import './form.css';