@contentstudio/ui 0.1.2 → 0.1.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.
- package/dist/index.d.ts +93 -8
- package/dist/index.js +1758 -1423
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,12 +4,16 @@ 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
6
|
import { default as Collapse } from './Collapse.vue';
|
|
7
|
+
import { default as Collapsible } from './components/Collapsible/Collapsible.vue';
|
|
7
8
|
import { Component } from 'vue';
|
|
8
9
|
import { default as Dialog } from './Dialog.vue';
|
|
10
|
+
import { default as Dropdown } from './components/Dropdown/Dropdown.vue';
|
|
11
|
+
import { default as DropdownItem } from './components/Dropdown/DropdownItem.vue';
|
|
9
12
|
import { default as HoverCard } from './HoverCard.vue';
|
|
10
13
|
import { default as HoverCardTarget } from './HoverCardTarget.vue';
|
|
11
14
|
import { default as Indicator } from './Indicator.vue';
|
|
12
15
|
import { InjectionKey } from 'vue';
|
|
16
|
+
import { default as ListItem } from './components/ListItem/ListItem.vue';
|
|
13
17
|
import { default as Loader } from './Loader.vue';
|
|
14
18
|
import { Placement } from '@floating-ui/vue';
|
|
15
19
|
import { default as Progress } from './Progress.vue';
|
|
@@ -82,6 +86,12 @@ export { Button }
|
|
|
82
86
|
|
|
83
87
|
export declare type ButtonColor = NonNullable<ButtonProps['color']>;
|
|
84
88
|
|
|
89
|
+
export declare interface ButtonLoaderProps {
|
|
90
|
+
color?: MantineColor;
|
|
91
|
+
size?: MantineSize | number;
|
|
92
|
+
variant?: 'oval' | 'dots' | 'bars';
|
|
93
|
+
}
|
|
94
|
+
|
|
85
95
|
export declare interface ButtonProps {
|
|
86
96
|
/** Button variant */
|
|
87
97
|
variant?: ButtonVariant;
|
|
@@ -135,8 +145,11 @@ export declare interface CheckboxProps {
|
|
|
135
145
|
indeterminate?: boolean;
|
|
136
146
|
iconColor?: ColorVariant;
|
|
137
147
|
autoContrast?: boolean;
|
|
148
|
+
variant?: CheckboxVariant;
|
|
138
149
|
}
|
|
139
150
|
|
|
151
|
+
export declare type CheckboxVariant = 'filled' | 'outlined';
|
|
152
|
+
|
|
140
153
|
export { Chip }
|
|
141
154
|
|
|
142
155
|
declare type ChipColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
@@ -208,6 +221,17 @@ export declare interface CollapseProps {
|
|
|
208
221
|
disableTransition?: boolean;
|
|
209
222
|
}
|
|
210
223
|
|
|
224
|
+
export { Collapsible }
|
|
225
|
+
|
|
226
|
+
export declare interface CollapsibleProps {
|
|
227
|
+
defaultOpen?: boolean;
|
|
228
|
+
disabled?: boolean;
|
|
229
|
+
class?: string;
|
|
230
|
+
hideArrow?: boolean;
|
|
231
|
+
buttonClass?: string;
|
|
232
|
+
selectedClass?: string;
|
|
233
|
+
}
|
|
234
|
+
|
|
211
235
|
declare type ColorVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
212
236
|
|
|
213
237
|
declare type ComponentRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -246,6 +270,46 @@ export declare interface DialogProps {
|
|
|
246
270
|
zIndex?: number;
|
|
247
271
|
}
|
|
248
272
|
|
|
273
|
+
export { Dropdown }
|
|
274
|
+
|
|
275
|
+
export { DropdownItem }
|
|
276
|
+
|
|
277
|
+
export declare interface DropdownItemProps {
|
|
278
|
+
/** Size of the dropdown item */
|
|
279
|
+
size?: ComponentSize;
|
|
280
|
+
/** Whether the item is disabled */
|
|
281
|
+
disabled?: boolean;
|
|
282
|
+
/** Whether to close dropdown on click */
|
|
283
|
+
closeOnClick?: boolean;
|
|
284
|
+
/** Custom classes for the item */
|
|
285
|
+
class?: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export declare interface DropdownProps {
|
|
289
|
+
/** Size of the dropdown */
|
|
290
|
+
size?: ComponentSize;
|
|
291
|
+
/** Border radius of the dropdown */
|
|
292
|
+
radius?: ComponentRadius;
|
|
293
|
+
/** Color theme of the dropdown */
|
|
294
|
+
color?: ThemeColor;
|
|
295
|
+
/** Whether the dropdown is open */
|
|
296
|
+
open?: boolean;
|
|
297
|
+
/** Whether the dropdown is disabled */
|
|
298
|
+
disabled?: boolean;
|
|
299
|
+
/** Text to show when dropdown is disabled */
|
|
300
|
+
disabledText?: string;
|
|
301
|
+
/** Custom classes for the dropdown button */
|
|
302
|
+
buttonClasses?: string;
|
|
303
|
+
/** Custom classes for the dropdown container */
|
|
304
|
+
dropdownClasses?: string;
|
|
305
|
+
/** Placement of the dropdown (top or bottom) */
|
|
306
|
+
placement?: 'top' | 'bottom';
|
|
307
|
+
/** Whether to show the dropdown arrow */
|
|
308
|
+
showArrow?: boolean;
|
|
309
|
+
/** Whether the parent should have relative positioning */
|
|
310
|
+
parentPositionRelative?: boolean;
|
|
311
|
+
}
|
|
312
|
+
|
|
249
313
|
export { HoverCard }
|
|
250
314
|
|
|
251
315
|
export declare interface HoverCardContext {
|
|
@@ -330,12 +394,26 @@ export declare interface IndicatorProps {
|
|
|
330
394
|
|
|
331
395
|
export declare type JustifyContent = 'start' | 'center' | 'end' | 'space-between';
|
|
332
396
|
|
|
397
|
+
export { ListItem }
|
|
398
|
+
|
|
399
|
+
export declare interface ListItemProps {
|
|
400
|
+
disabled?: boolean;
|
|
401
|
+
selected?: boolean;
|
|
402
|
+
class?: string;
|
|
403
|
+
selectedClass?: string;
|
|
404
|
+
}
|
|
405
|
+
|
|
333
406
|
export { Loader }
|
|
334
407
|
|
|
335
408
|
export declare interface LoaderProps {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
409
|
+
/** Loader variant */
|
|
410
|
+
variant?: LoaderVariant;
|
|
411
|
+
/** Loader color */
|
|
412
|
+
color?: ThemeColor;
|
|
413
|
+
/** Loader size */
|
|
414
|
+
size?: ComponentSize;
|
|
415
|
+
/** Custom class names */
|
|
416
|
+
class?: string;
|
|
339
417
|
}
|
|
340
418
|
|
|
341
419
|
export declare type LoaderVariant = 'oval' | 'dots' | 'bars';
|
|
@@ -404,9 +482,9 @@ export declare interface RadioProps {
|
|
|
404
482
|
*/
|
|
405
483
|
size?: ComponentSize;
|
|
406
484
|
/**
|
|
407
|
-
*
|
|
485
|
+
* Whether the radio button is disabled
|
|
408
486
|
*/
|
|
409
|
-
|
|
487
|
+
disabled?: boolean;
|
|
410
488
|
/**
|
|
411
489
|
* Description text
|
|
412
490
|
*/
|
|
@@ -416,9 +494,14 @@ export declare interface RadioProps {
|
|
|
416
494
|
*/
|
|
417
495
|
error?: string;
|
|
418
496
|
/**
|
|
419
|
-
*
|
|
497
|
+
* Position of the label
|
|
420
498
|
*/
|
|
421
|
-
|
|
499
|
+
labelPosition?: 'left' | 'right';
|
|
500
|
+
/**
|
|
501
|
+
* Visual variant of the radio button
|
|
502
|
+
* @default 'filled'
|
|
503
|
+
*/
|
|
504
|
+
variant?: RadioVariant;
|
|
422
505
|
/**
|
|
423
506
|
* Custom color for the radio icon
|
|
424
507
|
*/
|
|
@@ -429,6 +512,8 @@ export declare interface RadioProps {
|
|
|
429
512
|
id?: string;
|
|
430
513
|
}
|
|
431
514
|
|
|
515
|
+
export declare type RadioVariant = 'filled' | 'outlined';
|
|
516
|
+
|
|
432
517
|
declare type SectionProps = Record<string, any>;
|
|
433
518
|
|
|
434
519
|
export { Select }
|
|
@@ -524,6 +609,6 @@ declare interface UseHoverCardOptions {
|
|
|
524
609
|
initiallyOpened?: boolean;
|
|
525
610
|
}
|
|
526
611
|
|
|
527
|
-
declare type VariantType = 'filled' | 'light' | 'outline' | 'default' | 'subtle' | 'gradient' | 'white' | 'dot' | 'bordered' | 'bordered-transparent';
|
|
612
|
+
declare type VariantType = 'filled' | 'light' | 'outline' | 'default' | 'subtle' | 'gradient' | 'white' | 'dot' | 'bordered' | 'bordered-transparent' | 'text';
|
|
528
613
|
|
|
529
614
|
export { }
|