@contentstudio/ui 0.1.1 → 0.1.2
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 +127 -1
- package/dist/index.js +2212 -687
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +14 -11
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,18 @@ import { default as Badge } from './components/Badge/Badge.vue';
|
|
|
3
3
|
import { default as Button } from './components/Button/Button.vue';
|
|
4
4
|
import { default as Checkbox } from './components/Checkbox/Checkbox.vue';
|
|
5
5
|
import { default as Chip } from './Chip.vue';
|
|
6
|
+
import { default as Collapse } from './Collapse.vue';
|
|
6
7
|
import { Component } from 'vue';
|
|
8
|
+
import { default as Dialog } from './Dialog.vue';
|
|
9
|
+
import { default as HoverCard } from './HoverCard.vue';
|
|
10
|
+
import { default as HoverCardTarget } from './HoverCardTarget.vue';
|
|
7
11
|
import { default as Indicator } from './Indicator.vue';
|
|
12
|
+
import { InjectionKey } from 'vue';
|
|
13
|
+
import { default as Loader } from './Loader.vue';
|
|
14
|
+
import { Placement } from '@floating-ui/vue';
|
|
8
15
|
import { default as Progress } from './Progress.vue';
|
|
9
16
|
import { default as Radio } from './components/Radio/Radio.vue';
|
|
17
|
+
import { Ref } from 'vue';
|
|
10
18
|
import { default as Select } from './components/Select/Select.vue';
|
|
11
19
|
import { default as TextInput } from './TextInput.vue';
|
|
12
20
|
|
|
@@ -183,6 +191,23 @@ declare type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
183
191
|
|
|
184
192
|
declare type ChipVariant = 'filled' | 'outline' | 'light';
|
|
185
193
|
|
|
194
|
+
export { Collapse }
|
|
195
|
+
|
|
196
|
+
export declare interface CollapseProps {
|
|
197
|
+
/** Whether the collapse is open */
|
|
198
|
+
open?: boolean;
|
|
199
|
+
/** Collapse content */
|
|
200
|
+
children?: any;
|
|
201
|
+
/** Animation duration in milliseconds */
|
|
202
|
+
duration?: number;
|
|
203
|
+
/** Custom class names */
|
|
204
|
+
class?: string;
|
|
205
|
+
/** Size of the collapse spacing */
|
|
206
|
+
size?: ComponentSize;
|
|
207
|
+
/** Whether to disable transitions */
|
|
208
|
+
disableTransition?: boolean;
|
|
209
|
+
}
|
|
210
|
+
|
|
186
211
|
declare type ColorVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
187
212
|
|
|
188
213
|
declare type ComponentRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -191,6 +216,89 @@ declare type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
191
216
|
|
|
192
217
|
export declare const composables: {};
|
|
193
218
|
|
|
219
|
+
export { Dialog }
|
|
220
|
+
|
|
221
|
+
export declare interface DialogProps {
|
|
222
|
+
/** Dialog title */
|
|
223
|
+
title?: string;
|
|
224
|
+
/** Dialog content */
|
|
225
|
+
content?: string;
|
|
226
|
+
/** Whether the dialog is opened */
|
|
227
|
+
opened: boolean;
|
|
228
|
+
/** Dialog size */
|
|
229
|
+
size?: ComponentSize;
|
|
230
|
+
/** Whether to show close button */
|
|
231
|
+
withCloseButton?: boolean;
|
|
232
|
+
/** Called when close button is clicked */
|
|
233
|
+
onClose?: () => void;
|
|
234
|
+
/** Position of the dialog */
|
|
235
|
+
position?: {
|
|
236
|
+
top?: number | string;
|
|
237
|
+
right?: number | string;
|
|
238
|
+
bottom?: number | string;
|
|
239
|
+
left?: number | string;
|
|
240
|
+
};
|
|
241
|
+
/** Whether to keep the component mounted when hidden */
|
|
242
|
+
keepMounted?: boolean;
|
|
243
|
+
/** Color variant */
|
|
244
|
+
color?: ThemeColor;
|
|
245
|
+
/** z-index value */
|
|
246
|
+
zIndex?: number;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export { HoverCard }
|
|
250
|
+
|
|
251
|
+
export declare interface HoverCardContext {
|
|
252
|
+
isOpen: Ref<boolean>;
|
|
253
|
+
open: () => void;
|
|
254
|
+
close: () => void;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export declare interface HoverCardDropdownProps {
|
|
258
|
+
/** Additional classes for the dropdown */
|
|
259
|
+
class?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export declare const hoverCardInjectionKey: InjectionKey<HoverCardContext>;
|
|
263
|
+
|
|
264
|
+
export declare interface HoverCardProps {
|
|
265
|
+
/** Initial opened state */
|
|
266
|
+
initiallyOpened?: boolean;
|
|
267
|
+
/** Open delay in ms */
|
|
268
|
+
openDelay?: number;
|
|
269
|
+
/** Close delay in ms */
|
|
270
|
+
closeDelay?: number;
|
|
271
|
+
/** Placement of the dropdown */
|
|
272
|
+
placement?: Placement;
|
|
273
|
+
/** Called when dropdown opens */
|
|
274
|
+
onOpen?: () => void;
|
|
275
|
+
/** Called when dropdown closes */
|
|
276
|
+
onClose?: () => void;
|
|
277
|
+
/** Offset from the target */
|
|
278
|
+
offset?: number;
|
|
279
|
+
/** Whether to disable the hover card */
|
|
280
|
+
disabled?: boolean;
|
|
281
|
+
/** Size of the hover card */
|
|
282
|
+
size?: ComponentSize;
|
|
283
|
+
/** Whether to show arrow */
|
|
284
|
+
withArrow?: boolean;
|
|
285
|
+
/** Arrow offset */
|
|
286
|
+
arrowOffset?: number;
|
|
287
|
+
/** Whether to trap focus inside dropdown */
|
|
288
|
+
trapFocus?: boolean;
|
|
289
|
+
/** z-index value */
|
|
290
|
+
zIndex?: number;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export { HoverCardTarget }
|
|
294
|
+
|
|
295
|
+
export declare interface HoverCardTargetProps {
|
|
296
|
+
/** Whether to use the wrapper div */
|
|
297
|
+
withWrapper?: boolean;
|
|
298
|
+
/** Additional classes for the wrapper */
|
|
299
|
+
wrapperClass?: string;
|
|
300
|
+
}
|
|
301
|
+
|
|
194
302
|
export { Indicator }
|
|
195
303
|
|
|
196
304
|
export declare interface IndicatorProps {
|
|
@@ -222,12 +330,16 @@ export declare interface IndicatorProps {
|
|
|
222
330
|
|
|
223
331
|
export declare type JustifyContent = 'start' | 'center' | 'end' | 'space-between';
|
|
224
332
|
|
|
333
|
+
export { Loader }
|
|
334
|
+
|
|
225
335
|
export declare interface LoaderProps {
|
|
226
336
|
color?: MantineColor;
|
|
227
337
|
size?: MantineSize | number;
|
|
228
338
|
variant?: 'oval' | 'dots' | 'bars';
|
|
229
339
|
}
|
|
230
340
|
|
|
341
|
+
export declare type LoaderVariant = 'oval' | 'dots' | 'bars';
|
|
342
|
+
|
|
231
343
|
export declare type MantineColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
232
344
|
|
|
233
345
|
export declare type MantineGradient = {
|
|
@@ -398,6 +510,20 @@ export declare interface TextInputProps {
|
|
|
398
510
|
|
|
399
511
|
declare type ThemeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
400
512
|
|
|
401
|
-
declare
|
|
513
|
+
export declare function useHoverCard(options?: UseHoverCardOptions): {
|
|
514
|
+
isOpen: Ref<boolean, boolean>;
|
|
515
|
+
open: () => void;
|
|
516
|
+
close: () => void;
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
declare interface UseHoverCardOptions {
|
|
520
|
+
openDelay?: number;
|
|
521
|
+
closeDelay?: number;
|
|
522
|
+
onOpen?: () => void;
|
|
523
|
+
onClose?: () => void;
|
|
524
|
+
initiallyOpened?: boolean;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
declare type VariantType = 'filled' | 'light' | 'outline' | 'default' | 'subtle' | 'gradient' | 'white' | 'dot' | 'bordered' | 'bordered-transparent';
|
|
402
528
|
|
|
403
529
|
export { }
|