@stachelock/ui 0.6.2 → 0.6.3

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 (33) hide show
  1. package/dist/AvatarIcon-kcEI0AWe.js +4 -0
  2. package/dist/AvatarImage-YFR2etb8.js +4 -0
  3. package/dist/AvatarInitials-B7wCnBX9.js +4 -0
  4. package/dist/index.js +2507 -1482
  5. package/dist/src/components/avatars/AvatarIcon.d.ts +18 -0
  6. package/dist/src/components/avatars/AvatarImage.d.ts +25 -0
  7. package/dist/src/components/avatars/AvatarInitials.d.ts +15 -0
  8. package/dist/src/components/avatars/AvatarWithText.d.ts +129 -0
  9. package/dist/src/components/avatars/index.d.ts +4 -0
  10. package/dist/src/components/formatters/DateFormatter.d.ts +119 -0
  11. package/dist/src/components/formatters/DateRangeFormatter.d.ts +63 -0
  12. package/dist/src/components/formatters/index.d.ts +2 -0
  13. package/dist/src/components/icons/brands/DiscordBrandIcon.d.ts +2 -0
  14. package/dist/src/components/icons/brands/FacebookBrandIcon.d.ts +2 -0
  15. package/dist/src/components/icons/brands/GitHubBrandIcon.d.ts +2 -0
  16. package/dist/src/components/icons/brands/InstagramBrandIcon.d.ts +2 -0
  17. package/dist/src/components/icons/brands/LinkedInBrandIcon.d.ts +2 -0
  18. package/dist/src/components/icons/brands/PinterestBrandIcon.d.ts +2 -0
  19. package/dist/src/components/icons/brands/SnapchatBrandIcon.d.ts +2 -0
  20. package/dist/src/components/icons/brands/ThreadsBrandIcon.d.ts +2 -0
  21. package/dist/src/components/icons/brands/TikTokBrandIcon.d.ts +2 -0
  22. package/dist/src/components/icons/brands/TwitchBrandIcon.d.ts +2 -0
  23. package/dist/src/components/icons/brands/XBrandIcon.d.ts +2 -0
  24. package/dist/src/components/icons/brands/YouTubeBrandIcon.d.ts +2 -0
  25. package/dist/src/components/icons/brands/index.d.ts +12 -0
  26. package/dist/src/components/icons/index.d.ts +1 -0
  27. package/dist/src/components/index.d.ts +3 -0
  28. package/dist/src/components/inputs/DatepickerInput.d.ts +5 -5
  29. package/dist/src/components/inputs/ImageDropzoneInput.d.ts +326 -0
  30. package/dist/src/components/inputs/index.d.ts +1 -0
  31. package/dist/src/components/wrappers/BackgroundGradientWrapper.d.ts +1 -1
  32. package/dist/style.css +1 -1
  33. package/package.json +1 -1
@@ -0,0 +1,326 @@
1
+ import { PropType } from 'vue';
2
+ import { AcceptedFileType } from './FileDropzoneInput';
3
+ /**
4
+ * Represents a Cloudinary asset returned from upload
5
+ */
6
+ export interface CloudinaryAsset {
7
+ public_id: string;
8
+ url: string;
9
+ secure_url?: string;
10
+ original_file_name?: string;
11
+ format?: string;
12
+ resource_type?: string;
13
+ created_at?: string;
14
+ bytes?: number;
15
+ width?: number;
16
+ height?: number;
17
+ }
18
+ export type UploadStatusType = 'empty' | 'loading' | 'uploaded' | 'inherited' | 'error';
19
+ export type RoundedType = 'square' | 'rounded' | 'rounded-md' | 'rounded-lg' | 'rounded-full';
20
+ /**
21
+ * Parameters passed to update:media event
22
+ */
23
+ export interface UpdateMediaParams {
24
+ cloudinaryAsset: CloudinaryAsset;
25
+ presetType: string;
26
+ projectId?: string;
27
+ }
28
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
29
+ /** Current image value(s) */
30
+ modelValue: {
31
+ type: PropType<CloudinaryAsset | CloudinaryAsset[] | null>;
32
+ default: null;
33
+ };
34
+ /** Field name for form integration */
35
+ name: {
36
+ type: StringConstructor;
37
+ required: true;
38
+ };
39
+ /** Label text */
40
+ label: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ /** Tertiary label (right-aligned) */
45
+ tertiaryLabel: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ /** Image corner rounding style */
50
+ imageRounded: {
51
+ type: PropType<RoundedType>;
52
+ default: string;
53
+ };
54
+ /** Preset type for upload configuration */
55
+ presetType: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ /** Allow multiple file uploads */
60
+ enableMultiple: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ /** Accepted MIME types */
65
+ acceptedFormats: {
66
+ type: PropType<AcceptedFileType[]>;
67
+ default: () => string[];
68
+ };
69
+ /** Maximum file size in MB */
70
+ maximumFileSize: {
71
+ type: NumberConstructor;
72
+ default: number;
73
+ };
74
+ /** Display as avatar style */
75
+ isAvatar: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ /** Additional props for CloudinaryImage */
80
+ cloudinaryImageProps: {
81
+ type: ObjectConstructor;
82
+ default: () => {};
83
+ };
84
+ /** Use full screen height */
85
+ fullSize: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ /** Delete file from Cloudinary on clear */
90
+ deleteFileFromCloudinary: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ };
94
+ /** Show validation errors */
95
+ showErrors: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ };
99
+ /** Disable the input */
100
+ disabled: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ /** Message to show when disabled */
105
+ disabledMessage: {
106
+ type: StringConstructor;
107
+ default: string;
108
+ };
109
+ /** Show colorful validation states */
110
+ colorfulValidation: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ /** Project ID for upload context */
115
+ projectId: {
116
+ type: StringConstructor;
117
+ default: string;
118
+ };
119
+ /**
120
+ * Upload handler - must be provided by consuming package
121
+ * @param file - File to upload
122
+ * @param presetType - Preset type for configuration
123
+ * @param projectId - Project context
124
+ * @returns CloudinaryAsset
125
+ */
126
+ onUpload: {
127
+ type: PropType<(file: File, presetType: string, projectId?: string | undefined) => Promise<CloudinaryAsset | null>>;
128
+ required: true;
129
+ };
130
+ /**
131
+ * Delete handler - called when clearing an image
132
+ * @param publicId - Cloudinary public_id to delete
133
+ */
134
+ onDelete: {
135
+ type: PropType<(publicId: string) => Promise<void>>;
136
+ default: undefined;
137
+ };
138
+ /**
139
+ * Check if uploading is allowed (e.g., for demo mode)
140
+ * @returns boolean - true if upload should be blocked
141
+ */
142
+ onBeforeUpload: {
143
+ type: PropType<() => boolean>;
144
+ default: undefined;
145
+ };
146
+ }>, {
147
+ clearImage: (publicId?: string | undefined) => Promise<void>;
148
+ imageInputStatus: import('vue').Ref<UploadStatusType, UploadStatusType>;
149
+ uploadResponse: import('vue').Ref<{
150
+ public_id: string;
151
+ url: string;
152
+ secure_url?: string | undefined;
153
+ original_file_name?: string | undefined;
154
+ format?: string | undefined;
155
+ resource_type?: string | undefined;
156
+ created_at?: string | undefined;
157
+ bytes?: number | undefined;
158
+ width?: number | undefined;
159
+ height?: number | undefined;
160
+ }[], CloudinaryAsset[] | {
161
+ public_id: string;
162
+ url: string;
163
+ secure_url?: string | undefined;
164
+ original_file_name?: string | undefined;
165
+ format?: string | undefined;
166
+ resource_type?: string | undefined;
167
+ created_at?: string | undefined;
168
+ bytes?: number | undefined;
169
+ width?: number | undefined;
170
+ height?: number | undefined;
171
+ }[]>;
172
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
173
+ "update:modelValue": (value: CloudinaryAsset | CloudinaryAsset[] | null) => any;
174
+ "update:media": (params: UpdateMediaParams) => any;
175
+ "clear:media": (publicId: string) => any;
176
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
177
+ /** Current image value(s) */
178
+ modelValue: {
179
+ type: PropType<CloudinaryAsset | CloudinaryAsset[] | null>;
180
+ default: null;
181
+ };
182
+ /** Field name for form integration */
183
+ name: {
184
+ type: StringConstructor;
185
+ required: true;
186
+ };
187
+ /** Label text */
188
+ label: {
189
+ type: StringConstructor;
190
+ default: string;
191
+ };
192
+ /** Tertiary label (right-aligned) */
193
+ tertiaryLabel: {
194
+ type: StringConstructor;
195
+ default: string;
196
+ };
197
+ /** Image corner rounding style */
198
+ imageRounded: {
199
+ type: PropType<RoundedType>;
200
+ default: string;
201
+ };
202
+ /** Preset type for upload configuration */
203
+ presetType: {
204
+ type: StringConstructor;
205
+ default: string;
206
+ };
207
+ /** Allow multiple file uploads */
208
+ enableMultiple: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ /** Accepted MIME types */
213
+ acceptedFormats: {
214
+ type: PropType<AcceptedFileType[]>;
215
+ default: () => string[];
216
+ };
217
+ /** Maximum file size in MB */
218
+ maximumFileSize: {
219
+ type: NumberConstructor;
220
+ default: number;
221
+ };
222
+ /** Display as avatar style */
223
+ isAvatar: {
224
+ type: BooleanConstructor;
225
+ default: boolean;
226
+ };
227
+ /** Additional props for CloudinaryImage */
228
+ cloudinaryImageProps: {
229
+ type: ObjectConstructor;
230
+ default: () => {};
231
+ };
232
+ /** Use full screen height */
233
+ fullSize: {
234
+ type: BooleanConstructor;
235
+ default: boolean;
236
+ };
237
+ /** Delete file from Cloudinary on clear */
238
+ deleteFileFromCloudinary: {
239
+ type: BooleanConstructor;
240
+ default: boolean;
241
+ };
242
+ /** Show validation errors */
243
+ showErrors: {
244
+ type: BooleanConstructor;
245
+ default: boolean;
246
+ };
247
+ /** Disable the input */
248
+ disabled: {
249
+ type: BooleanConstructor;
250
+ default: boolean;
251
+ };
252
+ /** Message to show when disabled */
253
+ disabledMessage: {
254
+ type: StringConstructor;
255
+ default: string;
256
+ };
257
+ /** Show colorful validation states */
258
+ colorfulValidation: {
259
+ type: BooleanConstructor;
260
+ default: boolean;
261
+ };
262
+ /** Project ID for upload context */
263
+ projectId: {
264
+ type: StringConstructor;
265
+ default: string;
266
+ };
267
+ /**
268
+ * Upload handler - must be provided by consuming package
269
+ * @param file - File to upload
270
+ * @param presetType - Preset type for configuration
271
+ * @param projectId - Project context
272
+ * @returns CloudinaryAsset
273
+ */
274
+ onUpload: {
275
+ type: PropType<(file: File, presetType: string, projectId?: string | undefined) => Promise<CloudinaryAsset | null>>;
276
+ required: true;
277
+ };
278
+ /**
279
+ * Delete handler - called when clearing an image
280
+ * @param publicId - Cloudinary public_id to delete
281
+ */
282
+ onDelete: {
283
+ type: PropType<(publicId: string) => Promise<void>>;
284
+ default: undefined;
285
+ };
286
+ /**
287
+ * Check if uploading is allowed (e.g., for demo mode)
288
+ * @returns boolean - true if upload should be blocked
289
+ */
290
+ onBeforeUpload: {
291
+ type: PropType<() => boolean>;
292
+ default: undefined;
293
+ };
294
+ }>> & Readonly<{
295
+ "onUpdate:modelValue"?: ((value: CloudinaryAsset | CloudinaryAsset[] | null) => any) | undefined;
296
+ "onUpdate:media"?: ((params: UpdateMediaParams) => any) | undefined;
297
+ "onClear:media"?: ((publicId: string) => any) | undefined;
298
+ }>, {
299
+ label: string;
300
+ tertiaryLabel: string;
301
+ disabled: boolean;
302
+ showErrors: boolean;
303
+ colorfulValidation: boolean;
304
+ disabledMessage: string;
305
+ modelValue: CloudinaryAsset | CloudinaryAsset[] | null;
306
+ enableMultiple: boolean;
307
+ acceptedFormats: AcceptedFileType[];
308
+ maximumFileSize: number;
309
+ imageRounded: RoundedType;
310
+ presetType: string;
311
+ isAvatar: boolean;
312
+ cloudinaryImageProps: Record<string, any>;
313
+ fullSize: boolean;
314
+ deleteFileFromCloudinary: boolean;
315
+ projectId: string;
316
+ onDelete: (publicId: string) => Promise<void>;
317
+ onBeforeUpload: () => boolean;
318
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>, {
319
+ 'empty-state'?(_: {}): any;
320
+ }>;
321
+ export default _default;
322
+ type __VLS_WithTemplateSlots<T, S> = T & {
323
+ new (): {
324
+ $slots: S;
325
+ };
326
+ };
@@ -7,6 +7,7 @@ export { default as EmailInput } from './EmailInput';
7
7
  export { default as EmptyInput } from './EmptyInput';
8
8
  export { default as FileDropzoneInput } from './FileDropzoneInput';
9
9
  export { default as HiddenInput } from './HiddenInput';
10
+ export { default as ImageDropzoneInput } from './ImageDropzoneInput';
10
11
  export { default as InputsShowcase } from './InputsShowcase';
11
12
  export { default as PhoneInput } from './PhoneInput';
12
13
  export { default as RichTextInput } from './RichTextInput';
@@ -9,6 +9,7 @@ interface Props {
9
9
  classes?: string;
10
10
  }
11
11
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
12
+ classes: string;
12
13
  gradientStart: string;
13
14
  gradientEnd: string;
14
15
  gradientType: "linear" | "radial";
@@ -16,7 +17,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
16
17
  gradientShape: string;
17
18
  gradientSize: string;
18
19
  additionalStops: string[];
19
- classes: string;
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
21
21
  default?(_: {}): any;
22
22
  }>;