@contentstudio/ui 0.1.27 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -9,11 +9,13 @@ import { default as Chip } from './Chip.vue';
9
9
  import { default as Collapse } from './Collapse.vue';
10
10
  import { default as Collapsible } from './components/Collapsible/Collapsible.vue';
11
11
  import { Component } from 'vue';
12
+ import { default as CustomToast } from './CustomToast.vue';
12
13
  import { default as Dialog } from './Dialog.vue';
13
14
  import { default as Dropdown } from './components/Dropdown/Dropdown.vue';
14
15
  import { default as DropdownItem } from './components/Dropdown/DropdownItem.vue';
15
16
  import { default as HoverCard } from './HoverCard.vue';
16
17
  import { default as HoverCardTarget } from './HoverCardTarget.vue';
18
+ import { Id } from 'vue3-toastify';
17
19
  import { default as Indicator } from './Indicator.vue';
18
20
  import { InjectionKey } from 'vue';
19
21
  import { default as ListItem } from './components/ListItem/ListItem.vue';
@@ -31,6 +33,18 @@ import { default as TabsList } from './TabsList.vue';
31
33
  import { default as TabsPanel } from './TabsPanel.vue';
32
34
  import { default as TabsTab } from './TabsTab.vue';
33
35
  import { default as TextInput } from './TextInput.vue';
36
+ import { default as Toast } from './components/Toast/Toast.vue';
37
+ import { toast } from 'vue3-toastify';
38
+ import { ToastContainerOptions } from 'vue3-toastify';
39
+ import { ToastContent } from 'vue3-toastify';
40
+ import { ToastOptions } from 'vue3-toastify';
41
+ import { ToastPosition } from 'vue3-toastify';
42
+ import { ToastPosition as ToastPosition_2 } from 'vue3-toastify/index';
43
+ import { ToastTheme } from 'vue3-toastify';
44
+ import { ToastTransition } from 'vue3-toastify';
45
+ import { ToastTransition as ToastTransition_2 } from 'vue3-toastify/index';
46
+ import { ToastType } from 'vue3-toastify/index';
47
+ import { UpdateOptions } from 'vue3-toastify';
34
48
 
35
49
  export { Alert }
36
50
 
@@ -384,6 +398,53 @@ export declare type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
384
398
 
385
399
  export declare const composables: {};
386
400
 
401
+ export declare const cstuToast: {
402
+ show(content: string, options?: Partial<ToastOptions>): Id;
403
+ success(content: string, options?: Partial<ToastOptions>): Id;
404
+ info(content: string, options?: Partial<ToastOptions>): Id;
405
+ warning(content: string, options?: Partial<ToastOptions>): Id;
406
+ error(content: string, options?: Partial<ToastOptions>): Id;
407
+ loading(content: string, options?: Partial<ToastOptions>): Id;
408
+ dark(content: string, options?: Partial<ToastOptions>): Id;
409
+ showByType(content: string, type: string, options?: Partial<ToastOptions>): Id;
410
+ promise<T>(promise: Promise<T>, messages: {
411
+ pending?: string;
412
+ success?: string;
413
+ error?: string;
414
+ }, options?: Partial<ToastOptions>): Promise<T>;
415
+ update(toastId: Id, options: UpdateOptions): void;
416
+ remove(id?: Id): void;
417
+ clear(): void;
418
+ isActive(toastId: Id): boolean;
419
+ done(toastId: Id): void;
420
+ POSITION: {
421
+ TOP_LEFT: ToastPosition_2;
422
+ TOP_RIGHT: ToastPosition_2;
423
+ TOP_CENTER: ToastPosition_2;
424
+ BOTTOM_LEFT: ToastPosition_2;
425
+ BOTTOM_RIGHT: ToastPosition_2;
426
+ BOTTOM_CENTER: ToastPosition_2;
427
+ };
428
+ TYPE: {
429
+ INFO: ToastType;
430
+ SUCCESS: ToastType;
431
+ WARNING: ToastType;
432
+ ERROR: ToastType;
433
+ DEFAULT: ToastType;
434
+ };
435
+ TRANSITIONS: {
436
+ FLIP: ToastTransition_2;
437
+ SLIDE: ToastTransition_2;
438
+ ZOOM: ToastTransition_2;
439
+ BOUNCE: ToastTransition_2;
440
+ NONE: ToastTransition_2;
441
+ };
442
+ };
443
+
444
+ export { CustomToast }
445
+
446
+ export declare type CustomToastType = 'info' | 'warning' | 'success' | 'error' | 'loading' | 'dark' | 'default';
447
+
387
448
  export { Dialog }
388
449
 
389
450
  export declare interface DialogProps {
@@ -523,6 +584,8 @@ export declare interface HoverCardTargetProps {
523
584
  wrapperClass?: string;
524
585
  }
525
586
 
587
+ export { Id }
588
+
526
589
  export { Indicator }
527
590
 
528
591
  export declare interface IndicatorProps {
@@ -752,6 +815,15 @@ export declare interface PaginationProps {
752
815
 
753
816
  export declare type PaginationVariant = 'filled' | 'outline';
754
817
 
818
+ export declare const POSITION: {
819
+ TOP_LEFT: ToastPosition_2;
820
+ TOP_RIGHT: ToastPosition_2;
821
+ TOP_CENTER: ToastPosition_2;
822
+ BOTTOM_LEFT: ToastPosition_2;
823
+ BOTTOM_RIGHT: ToastPosition_2;
824
+ BOTTOM_CENTER: ToastPosition_2;
825
+ };
826
+
755
827
  declare type Position = 'top-start' | 'top-end' | 'top-center' | 'bottom-start' | 'bottom-end' | 'bottom-center' | 'middle-start' | 'middle-end' | 'middle-center';
756
828
 
757
829
  export { Progress }
@@ -1026,8 +1098,128 @@ export declare interface TextInputProps {
1026
1098
 
1027
1099
  export declare type ThemeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
1028
1100
 
1101
+ export { Toast }
1102
+
1103
+ export { toast }
1104
+
1105
+ export declare interface ToastContainerProps extends Partial<ToastContainerOptions> {
1106
+ /** Display multiple toasts at the same time */
1107
+ multiple?: boolean;
1108
+ /** Limit the number of toast displayed at the same time */
1109
+ limit?: number;
1110
+ /** Display newest toast on top */
1111
+ newestOnTop?: boolean;
1112
+ /** Add optional classes to the container */
1113
+ containerClassName?: string;
1114
+ /** Render unsafe string, like html tag */
1115
+ dangerouslyHTMLString?: boolean;
1116
+ /** Clear all toasts on url change */
1117
+ clearOnUrlChange?: boolean;
1118
+ /** Support right to left content */
1119
+ rtl?: boolean;
1120
+ /** Used to identify the Container when working with multiple container */
1121
+ containerId?: string | number;
1122
+ /** Position of the toast: top-right, top-center, top-left, bottom-right, bottom-center, bottom-left */
1123
+ position?: ToastPosition;
1124
+ /** Delay in ms to close the toast. If set to false, the notification needs to be closed manually */
1125
+ autoClose?: number | boolean;
1126
+ /** Replace the default close button or false to hide the button */
1127
+ closeButton?: boolean;
1128
+ /** Transition animation */
1129
+ transition?: ToastTransition;
1130
+ /** Display or not the progress bar below the toast (remaining time) */
1131
+ hideProgressBar?: boolean;
1132
+ /** Keep the timer running or not on hover */
1133
+ pauseOnHover?: boolean;
1134
+ /** Pause the timer when the window loses focus */
1135
+ pauseOnFocusLoss?: boolean;
1136
+ /** Dismiss toast on click */
1137
+ closeOnClick?: boolean;
1138
+ /** Add optional classes to the toast */
1139
+ toastClassName?: string;
1140
+ /** Add optional classes to the toast body */
1141
+ bodyClassName?: string;
1142
+ /** Add optional inline style to the container */
1143
+ style?: Record<string, string>;
1144
+ /** Add optional classes to the progress bar */
1145
+ progressClassName?: string;
1146
+ /** Add optional inline style to the progress bar */
1147
+ progressStyle?: Record<string, string>;
1148
+ /** Define the ARIA role for the toasts */
1149
+ role?: string;
1150
+ /** Theme: auto, light, dark, colored */
1151
+ theme?: ToastTheme;
1152
+ }
1153
+
1154
+ export { ToastContent }
1155
+
1156
+ export declare const ToastPlugin: {
1157
+ install: (app: App, options?: ToastContainerOptions) => void;
1158
+ };
1159
+
1160
+ export declare interface ToastProps extends Partial<ToastOptions> {
1161
+ /** Toast message content */
1162
+ message?: string;
1163
+ /** Toast type: default, info, success, warning, error */
1164
+ type?: ToastOptions['type'];
1165
+ /** Delay in ms to close the toast. If set to false, the notification needs to be closed manually */
1166
+ autoClose?: number | boolean;
1167
+ /** Position of the toast: top-right, top-center, top-left, bottom-right, bottom-center, bottom-left */
1168
+ position?: ToastPosition;
1169
+ /** Display or not the progress bar below the toast (remaining time) */
1170
+ hideProgressBar?: boolean;
1171
+ /** Keep the timer running or not on hover */
1172
+ pauseOnHover?: boolean;
1173
+ /** Pause the timer when the window loses focus */
1174
+ pauseOnFocusLoss?: boolean;
1175
+ /** Dismiss toast on click */
1176
+ closeOnClick?: boolean;
1177
+ /** Add optional classes to the toast */
1178
+ toastClassName?: string;
1179
+ /** Add optional classes to the toast body */
1180
+ bodyClassName?: string;
1181
+ /** Add optional inline style to the container */
1182
+ style?: Record<string, string>;
1183
+ /** Add optional classes to the progress bar */
1184
+ progressClassName?: string;
1185
+ /** Add optional inline style to the progress bar */
1186
+ progressStyle?: Record<string, string>;
1187
+ /** Define the ARIA role for the toasts */
1188
+ role?: string;
1189
+ /** Theme: auto, light, dark, colored */
1190
+ theme?: ToastTheme;
1191
+ /** Transition animation */
1192
+ transition?: ToastTransition;
1193
+ /** Replace the default close button or false to hide the button */
1194
+ closeButton?: boolean;
1195
+ /** Render unsafe string, like html tag */
1196
+ dangerouslyHTMLString?: boolean;
1197
+ /** Support right to left content */
1198
+ rtl?: boolean;
1199
+ /** Used to identify the Container when working with multiple container */
1200
+ containerId?: string | number;
1201
+ }
1202
+
1203
+ export declare type ToastVariant = 'solid' | 'outlined' | 'gradient';
1204
+
1205
+ export declare const TRANSITIONS: {
1206
+ FLIP: ToastTransition_2;
1207
+ SLIDE: ToastTransition_2;
1208
+ ZOOM: ToastTransition_2;
1209
+ BOUNCE: ToastTransition_2;
1210
+ NONE: ToastTransition_2;
1211
+ };
1212
+
1213
+ export declare const TYPE: {
1214
+ INFO: ToastType;
1215
+ SUCCESS: ToastType;
1216
+ WARNING: ToastType;
1217
+ ERROR: ToastType;
1218
+ DEFAULT: ToastType;
1219
+ };
1220
+
1029
1221
  export declare function useHoverCard(options?: UseHoverCardOptions): {
1030
- isOpen: Ref<boolean, boolean>;
1222
+ isOpen: Ref<boolean>;
1031
1223
  open: () => void;
1032
1224
  close: () => void;
1033
1225
  };