@codeandfunction/callaloo 1.18.10 → 2.1.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.
- package/README.md +2 -0
- package/dist/assets/styles.css +1 -0
- package/dist/components/Assets/CLIcon.vue.d.ts +4 -1
- package/dist/components/Assets/index.d.ts +3 -0
- package/dist/components/Assets/utils.d.ts +6 -0
- package/dist/components/Buttons/CLA11yButton.vue.d.ts +8 -6
- package/dist/components/Buttons/CLButton.vue.d.ts +42 -31
- package/dist/components/Buttons/index.d.ts +5 -0
- package/dist/components/Buttons/utils.d.ts +4 -3
- package/dist/components/Containers/CLCard.vue.d.ts +12 -8
- package/dist/components/Containers/CLDisclosure.vue.d.ts +9 -6
- package/dist/components/Containers/Carousel/CLCarousel.vue.d.ts +9 -7
- package/dist/components/Containers/Carousel/CLCarouselNavigation.vue.d.ts +2 -2
- package/dist/components/Containers/index.d.ts +9 -0
- package/dist/components/Containers/utils.d.ts +5 -4
- package/dist/components/Form/CLCheckbox.vue.d.ts +10 -8
- package/dist/components/Form/CLInput.vue.d.ts +11 -9
- package/dist/components/Form/CLInputMessages.vue.d.ts +3 -3
- package/dist/components/Form/CLRadioButton.vue.d.ts +10 -8
- package/dist/components/Form/CLSelect.vue.d.ts +11 -9
- package/dist/components/Form/CLTextArea.vue.d.ts +11 -9
- package/dist/components/Form/index.d.ts +11 -0
- package/dist/components/Form/utils.d.ts +3 -3
- package/dist/components/Indicators/CLBadge.vue.d.ts +9 -6
- package/dist/components/Indicators/CLBanner.vue.d.ts +6 -5
- package/dist/components/Indicators/CLPill.vue.d.ts +9 -6
- package/dist/components/Indicators/index.d.ts +7 -0
- package/dist/components/Indicators/utils.d.ts +6 -5
- package/dist/components/Loading/CLSkeleton.vue.d.ts +3 -3
- package/dist/components/Loading/CLSpinner.vue.d.ts +4 -4
- package/dist/components/Loading/index.d.ts +5 -0
- package/dist/components/Loading/utils.d.ts +2 -2
- package/dist/components/Modals/CLModal.vue.d.ts +4 -2
- package/dist/components/Modals/index.d.ts +3 -0
- package/dist/components/Navigation/CLLink.vue.d.ts +4 -4
- package/dist/components/Navigation/CLNavLink.vue.d.ts +4 -4
- package/dist/components/Navigation/CLNavSection.vue.d.ts +4 -4
- package/dist/components/Navigation/index.d.ts +7 -0
- package/dist/components/Navigation/utils.d.ts +3 -3
- package/dist/components/Popups/CLDropdownMenu.vue.d.ts +310 -58
- package/dist/components/Popups/CLToast.vue.d.ts +8 -5
- package/dist/components/Popups/index.d.ts +5 -0
- package/dist/components/Popups/utils.d.ts +7 -4
- package/dist/components/Table/CLTable.vue.d.ts +1 -1
- package/dist/components/Table/index.d.ts +15 -0
- package/dist/components/Theme/CLThemeProvider.vue.d.ts +24 -18
- package/dist/components/Theme/base-theme.d.ts +35 -182
- package/dist/components/Theme/index.d.ts +3 -0
- package/dist/components/Theme/utils.d.ts +22 -5
- package/dist/components/Typography/CLHeading.vue.d.ts +12 -13
- package/dist/components/Typography/CLText.vue.d.ts +14 -15
- package/dist/components/Typography/index.d.ts +5 -0
- package/dist/components/Typography/utils.d.ts +3 -4
- package/dist/composables/useHasSlotContent.d.ts +1 -0
- package/dist/index.d.ts +14 -36
- package/dist/index.js +4278 -7247
- package/dist/types.d.ts +69 -64
- package/dist/utils/helper.d.ts +2 -2
- package/package.json +54 -44
- package/dist/assets/index.css +0 -1
- package/dist/index.js.map +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface BannerProps {
|
|
|
14
14
|
borderRadius?: BorderRadius;
|
|
15
15
|
/** A `boolean` value which dictates the busy state of the Banner. When set to `true`, it utilizes the `<CLSkeleton />` component. */
|
|
16
16
|
busy?: boolean;
|
|
17
|
+
/** Sets the color of the Badge. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
18
|
+
color?: Colors;
|
|
17
19
|
/** Sets the height of the Banner, it's default value is `auto`. */
|
|
18
20
|
height?: string;
|
|
19
21
|
/** The text to be displayed as the message. */
|
|
@@ -26,15 +28,13 @@ export interface BannerProps {
|
|
|
26
28
|
rounded?: boolean;
|
|
27
29
|
/** Sets a custom ID used for unit tests. */
|
|
28
30
|
testId?: string;
|
|
29
|
-
/** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
30
|
-
theme?: BannerThemes;
|
|
31
31
|
/** Set the text of the title which should be displayed. */
|
|
32
32
|
title?: string;
|
|
33
33
|
/** Sets the width of the Banner, it's default value is `100%`. */
|
|
34
34
|
width?: string;
|
|
35
|
+
/** Sets the color variant. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
36
|
+
variant?: ColorVariants;
|
|
35
37
|
}
|
|
36
|
-
export type BadgeThemes = Exclude<Themes, Themes.Transparent>;
|
|
37
|
-
export type BannerThemes = Exclude<Themes, Themes.Transparent>;
|
|
38
38
|
export type BlockTextHtmlTags = 'blockquote' | 'dd' | 'div' | 'dl' | 'dt' | 'figcaption' | 'figure' | 'hr' | 'li' | 'menu' | 'ol' | 'p' | 'pre' | 'ul';
|
|
39
39
|
export declare enum BorderRadius {
|
|
40
40
|
Full = "rounded-full",
|
|
@@ -72,6 +72,8 @@ export interface CardProps {
|
|
|
72
72
|
busy?: boolean;
|
|
73
73
|
/** Appears below the title. Can be used to provide meta data, e.g. the time and date. */
|
|
74
74
|
byline?: string;
|
|
75
|
+
/** Sets the color of the Card. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
76
|
+
color?: Colors;
|
|
75
77
|
/** The `elevated` property displays a shadow to indicate elevation. */
|
|
76
78
|
elevated?: boolean;
|
|
77
79
|
/** A callback function which provides a reference to the button. */
|
|
@@ -90,6 +92,8 @@ export interface CardProps {
|
|
|
90
92
|
imageHeight?: string;
|
|
91
93
|
/** Sets the width of the image, it's default value is `auto`. */
|
|
92
94
|
imageWidth?: string;
|
|
95
|
+
/** Indicates how the browser should load the image. Default is `CLLoading.Eager`*/
|
|
96
|
+
imageLoading?: Loading;
|
|
93
97
|
/** A callback function to handle click events. */
|
|
94
98
|
onClick?: GenericFunction;
|
|
95
99
|
/** When set to `false`, it will remove any horizontal and vertical padding of the slot content. */
|
|
@@ -106,22 +110,31 @@ export interface CardProps {
|
|
|
106
110
|
titleType?: HeadingTypes;
|
|
107
111
|
/** Set the title heading level. The property can be one of `CLHeadingLevels`, e.g. `CLHeadingLevels.H1` */
|
|
108
112
|
titleHLevel?: HeadingLevels;
|
|
109
|
-
/** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
110
|
-
theme?: Themes;
|
|
111
113
|
/** Sets the Card type. The property can be one of `CLCardTypes`, e.g. `CLCardTypes.Medium`. */
|
|
112
114
|
type?: CardTypes;
|
|
113
115
|
/** Sets the width of the Card, it's default value is `auto`. */
|
|
114
116
|
width?: string;
|
|
117
|
+
/** Sets the color variant. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
118
|
+
variant?: ColorVariants;
|
|
115
119
|
}
|
|
116
|
-
export
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
export declare enum Colors {
|
|
121
|
+
Primary = "primary",
|
|
122
|
+
Secondary = "secondary",
|
|
123
|
+
Danger = "danger",
|
|
124
|
+
Info = "info",
|
|
125
|
+
Neutral = "neutral",
|
|
126
|
+
Warning = "warning",
|
|
127
|
+
Success = "success"
|
|
128
|
+
}
|
|
129
|
+
export declare enum ColorVariants {
|
|
130
|
+
Contrast = "contrast",
|
|
131
|
+
Ghost = "ghost",
|
|
132
|
+
Outline = "outline",
|
|
133
|
+
Soft = "soft",
|
|
134
|
+
Solid = "solid"
|
|
121
135
|
}
|
|
122
136
|
export type GenericFunction = (event?: Event) => void;
|
|
123
137
|
export type GenericFocusFunction = (event: FocusEvent) => void;
|
|
124
|
-
export type HeadingThemes = Extract<Themes, Themes.Light | Themes.Dark>;
|
|
125
138
|
export declare enum HeadingLevels {
|
|
126
139
|
H1 = "h1",
|
|
127
140
|
H2 = "h2",
|
|
@@ -185,6 +198,7 @@ export declare enum IconNames {
|
|
|
185
198
|
ArrowNarrowLeft = "tabler:arrow-narrow-left",
|
|
186
199
|
ArrowNarrowRight = "tabler:arrow-narrow-right",
|
|
187
200
|
ArrowNarrowUp = "tabler:arrow-narrow-up",
|
|
201
|
+
ArrowsDiagonal = "tabler:arrows-diagonal",
|
|
188
202
|
ArrowsMaximize = "tabler:arrows-maximize",
|
|
189
203
|
ArrowsMinimize = "tabler:arrows-minimize",
|
|
190
204
|
AtSign = "tabler:at",
|
|
@@ -219,6 +233,7 @@ export declare enum IconNames {
|
|
|
219
233
|
BrandX = "tabler:brand-x",
|
|
220
234
|
BrandYouTube = "tabler:brand-youtube-filled",
|
|
221
235
|
Broadcast = "tabler:broadcast",
|
|
236
|
+
Browser = "tabler:browser",
|
|
222
237
|
Calendar = "tabler:calendar",
|
|
223
238
|
Calculator = "tabler:calculator",
|
|
224
239
|
CaretDown = "tabler:caret-down",
|
|
@@ -249,6 +264,8 @@ export declare enum IconNames {
|
|
|
249
264
|
Clock2 = "tabler:clock-2",
|
|
250
265
|
Cloud = "tabler:cloud",
|
|
251
266
|
CloudComputing = "tabler:cloud-computing",
|
|
267
|
+
CloudDataConnection = "tabler:cloud-data-connection",
|
|
268
|
+
CloudUpload = "tabler:cloud-upload",
|
|
252
269
|
Code = "tabler:code",
|
|
253
270
|
Columns1 = "tabler:columns-1",
|
|
254
271
|
Columns2 = "tabler:columns-2",
|
|
@@ -293,6 +310,7 @@ export declare enum IconNames {
|
|
|
293
310
|
Forms = "tabler:forms",
|
|
294
311
|
Frame = "tabler:frame",
|
|
295
312
|
Hanger = "tabler:hanger",
|
|
313
|
+
HandStop = "tabler:hand-stop",
|
|
296
314
|
Heading = "tabler:heading",
|
|
297
315
|
Help = "tabler:help",
|
|
298
316
|
HelpCircle = "tabler:help-circle",
|
|
@@ -311,12 +329,14 @@ export declare enum IconNames {
|
|
|
311
329
|
LayoutDashboard = "tabler:layout-dashboard",
|
|
312
330
|
LayoutGrid = "tabler:layout-grid",
|
|
313
331
|
LayoutNavbar = "tabler:layout-navbar",
|
|
332
|
+
LayoutRows = "tabler:layout-rows",
|
|
314
333
|
LayoutSidebar = "tabler:layout-sidebar",
|
|
315
334
|
LayoutSidebarRight = "tabler:layout-sidebar-right",
|
|
316
335
|
Link = "tabler:link",
|
|
317
336
|
List = "tabler:list",
|
|
318
337
|
ListNumbers = "tabler:list-numbers",
|
|
319
338
|
ListTree = "tabler:list-tree",
|
|
339
|
+
LoadBalancer = "tabler:load-balancer",
|
|
320
340
|
LogIn = "tabler:login",
|
|
321
341
|
LogOut = "tabler:logout",
|
|
322
342
|
Logs = "tabler:logs",
|
|
@@ -352,10 +372,14 @@ export declare enum IconNames {
|
|
|
352
372
|
NewSection = "tabler:new-section",
|
|
353
373
|
PlusCircle = "tabler:circle-plus",
|
|
354
374
|
Plus = "tabler:plus",
|
|
375
|
+
Pointer = "tabler:pointer",
|
|
355
376
|
Rectangle = "tabler:rectangle",
|
|
356
377
|
Refresh = "tabler:refresh",
|
|
357
378
|
Restore = "tabler:restore",
|
|
358
379
|
Rocket = "tabler:rocket",
|
|
380
|
+
RowInsertTop = "tabler:row-insert-top",
|
|
381
|
+
RowInsertBottom = "tabler:row-insert-bottom",
|
|
382
|
+
RowRemove = "tabler:row-remove",
|
|
359
383
|
Rss = "tabler:rss",
|
|
360
384
|
Scoreboard = "tabler:scoreboard",
|
|
361
385
|
Seo = "tabler:seo",
|
|
@@ -388,7 +412,11 @@ export declare enum IconNames {
|
|
|
388
412
|
Typography = "tabler:typography",
|
|
389
413
|
Upload = "tabler:upload",
|
|
390
414
|
User = "tabler:user",
|
|
415
|
+
Users = "tabler:users",
|
|
391
416
|
UserCircle = "tabler:user-circle",
|
|
417
|
+
UsersGroup = "tabler:users-group",
|
|
418
|
+
UsersMinus = "tabler:users-minus",
|
|
419
|
+
UsersPlus = "tabler:users-plus",
|
|
392
420
|
UserSquareRounded = "tabler:user-square-rounded",
|
|
393
421
|
Video = "tabler:video",
|
|
394
422
|
WindowMaximize = "tabler:window-maximize",
|
|
@@ -396,7 +424,6 @@ export declare enum IconNames {
|
|
|
396
424
|
WordlWww = "tabler:world-www"
|
|
397
425
|
}
|
|
398
426
|
export type InlineTextHtmlTags = 'a' | 'abbr' | 'b' | 'bdi' | 'bdo' | 'br' | 'cite' | 'code' | 'data' | 'dfn' | 'em' | 'i' | 'kbd' | 'mark' | 'q' | 'rp' | 'rt' | 'ruby' | 's' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'time' | 'u' | 'var' | 'wbr';
|
|
399
|
-
export type InputThemes = Extract<Themes, Themes.Danger | Themes.Default | Themes.Success | Themes.Warning>;
|
|
400
427
|
export declare enum InputTypes {
|
|
401
428
|
Color = "color",
|
|
402
429
|
Date = "date",
|
|
@@ -414,21 +441,30 @@ export declare enum InputTypes {
|
|
|
414
441
|
Time = "time",
|
|
415
442
|
Url = "url"
|
|
416
443
|
}
|
|
444
|
+
export declare enum Loading {
|
|
445
|
+
Eager = "eager",
|
|
446
|
+
Lazy = "lazy"
|
|
447
|
+
}
|
|
417
448
|
export declare enum LinkTarget {
|
|
418
449
|
Blank = "_blank",
|
|
419
450
|
Self = "_self"
|
|
420
451
|
}
|
|
421
|
-
export type MessageThemes = Extract<Themes, Themes.Danger | Themes.Default | Themes.Success | Themes.Warning>;
|
|
422
452
|
export declare enum MessageType {
|
|
423
453
|
Danger = "danger",
|
|
424
454
|
Default = "default",
|
|
425
455
|
Success = "success",
|
|
426
456
|
Warning = "warning"
|
|
427
457
|
}
|
|
458
|
+
export declare enum Mode {
|
|
459
|
+
Dark = "dark",
|
|
460
|
+
Light = "light"
|
|
461
|
+
}
|
|
428
462
|
export interface NavItem {
|
|
429
463
|
/** Sets the aria-label on the NavLink element. */
|
|
430
464
|
ariaLabel?: string;
|
|
431
465
|
/** Sets the external attribute on the NavLink element. If set, it adds an icon indicating that the link will open a new tab/window. */
|
|
466
|
+
/** Sets the color of the NavLink element. The property can be one of `CLColors`, e.g. `CLColors.Default` */
|
|
467
|
+
color?: Colors;
|
|
432
468
|
external?: boolean;
|
|
433
469
|
/** Sets the href attribute on the NavLink element. */
|
|
434
470
|
href?: string;
|
|
@@ -442,14 +478,11 @@ export interface NavItem {
|
|
|
442
478
|
rel?: string;
|
|
443
479
|
/** Sets the target attribute on the NavLink element. The property can be one of `CLLinkTarget`, e.g. `CLLinkTarget.Self` */
|
|
444
480
|
target?: LinkTarget;
|
|
445
|
-
/** Sets the theme of the NavLink element. The property can be one of `CLSimpleThemes`, e.g. `CLThemes.Default` */
|
|
446
|
-
theme?: SimpleThemes;
|
|
447
481
|
}
|
|
448
482
|
export interface Option {
|
|
449
483
|
label: string;
|
|
450
484
|
value: string | number | null;
|
|
451
485
|
}
|
|
452
|
-
export type PillThemes = Exclude<Themes, Themes.Transparent>;
|
|
453
486
|
export declare enum Order {
|
|
454
487
|
After = "after",
|
|
455
488
|
Before = "before"
|
|
@@ -463,6 +496,15 @@ export declare enum PaginationType {
|
|
|
463
496
|
Hidden = "hidden",
|
|
464
497
|
Numbered = "numbered"
|
|
465
498
|
}
|
|
499
|
+
export interface Palette {
|
|
500
|
+
primary?: Shades;
|
|
501
|
+
secondary?: Shades;
|
|
502
|
+
neutral?: Shades;
|
|
503
|
+
danger?: Shades;
|
|
504
|
+
warning?: Shades;
|
|
505
|
+
success?: Shades;
|
|
506
|
+
info?: Shades;
|
|
507
|
+
}
|
|
466
508
|
export declare enum Placement {
|
|
467
509
|
Bottom = "bottom",
|
|
468
510
|
BottomEnd = "bottom-end",
|
|
@@ -481,7 +523,6 @@ export declare enum Position {
|
|
|
481
523
|
Absolute = "absolute",
|
|
482
524
|
Relative = "relative"
|
|
483
525
|
}
|
|
484
|
-
export type SimpleThemes = Extract<Themes, Themes.Dark | Themes.Danger | Themes.Default | Themes.Light | Themes.Primary | Themes.Secondary | Themes.Success | Themes.Warning>;
|
|
485
526
|
export declare enum Sizes {
|
|
486
527
|
Tiny = "tiny",
|
|
487
528
|
Small = "small",
|
|
@@ -489,14 +530,12 @@ export declare enum Sizes {
|
|
|
489
530
|
Large = "large",
|
|
490
531
|
XLarge = "xlarge"
|
|
491
532
|
}
|
|
492
|
-
export type SpinnerThemes = Exclude<Themes, Themes.Transparent | Themes.Outline | Themes.OutlineDanger | Themes.OutlineInfo | Themes.OutlinePrimary | Themes.OutlineSecondary | Themes.OutlineSuccess | Themes.OutlineWarning>;
|
|
493
533
|
export declare enum TableTypes {
|
|
494
534
|
Condensed = "condensed",
|
|
495
535
|
Default = "default",
|
|
496
536
|
Plain = "plain"
|
|
497
537
|
}
|
|
498
538
|
export type TextHtmlTags = BlockTextHtmlTags | InlineTextHtmlTags;
|
|
499
|
-
export type TextThemes = Extract<Themes, Themes.Light | Themes.Dark>;
|
|
500
539
|
export declare enum TextTypes {
|
|
501
540
|
Body = "body",
|
|
502
541
|
Summary = "summary",
|
|
@@ -506,55 +545,22 @@ export declare enum TextTypes {
|
|
|
506
545
|
Large = "large",
|
|
507
546
|
XLarge = "xlarge"
|
|
508
547
|
}
|
|
509
|
-
export
|
|
510
|
-
100?: string;
|
|
511
|
-
200?: string;
|
|
512
|
-
300?: string;
|
|
513
|
-
400?: string;
|
|
514
|
-
500?: string;
|
|
515
|
-
600?: string;
|
|
516
|
-
700?: string;
|
|
517
|
-
800?: string;
|
|
518
|
-
900?: string;
|
|
519
|
-
}
|
|
520
|
-
export interface Theme {
|
|
521
|
-
primary?: Shades;
|
|
522
|
-
secondary?: Shades;
|
|
523
|
-
neutral?: Shades;
|
|
524
|
-
danger?: Shades;
|
|
525
|
-
warning?: Shades;
|
|
526
|
-
success?: Shades;
|
|
527
|
-
info?: Shades;
|
|
528
|
-
}
|
|
548
|
+
export type Shades = Record<number, string>;
|
|
529
549
|
export interface ThemeConfig {
|
|
530
|
-
colors
|
|
550
|
+
colors?: Palette;
|
|
551
|
+
darkMode: boolean;
|
|
552
|
+
fontFamily?: string;
|
|
553
|
+
mode?: Mode;
|
|
531
554
|
radius?: BorderRadius;
|
|
532
555
|
}
|
|
533
|
-
export type
|
|
534
|
-
export declare enum Themes {
|
|
535
|
-
Default = "default",
|
|
536
|
-
Primary = "primary",
|
|
537
|
-
Secondary = "secondary",
|
|
538
|
-
Transparent = "transparent",
|
|
539
|
-
Outline = "outline",
|
|
540
|
-
OutlinePrimary = "outline-primary",
|
|
541
|
-
OutlineSecondary = "outline-secondary",
|
|
542
|
-
OutlineDanger = "outline-danger",
|
|
543
|
-
OutlineWarning = "outline-warning",
|
|
544
|
-
OutlineSuccess = "outline-success",
|
|
545
|
-
OutlineInfo = "outline-info",
|
|
546
|
-
Danger = "danger",
|
|
547
|
-
Warning = "warning",
|
|
548
|
-
Success = "success",
|
|
549
|
-
Info = "info",
|
|
550
|
-
Light = "light",
|
|
551
|
-
Dark = "dark"
|
|
552
|
-
}
|
|
556
|
+
export type PaletteKeys = keyof Palette;
|
|
553
557
|
export interface ToastProps {
|
|
554
558
|
/** The action label text to be displayed. */
|
|
555
559
|
actionLabel?: string;
|
|
556
560
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
557
561
|
borderRadius?: BorderRadius;
|
|
562
|
+
/** Sets the color of the buttons and icons. The property can be one of `CLColors`, e.g. `CLColors.Default` */
|
|
563
|
+
color?: Colors;
|
|
558
564
|
/** Time in seconds e.g 5 = 5 seconds */
|
|
559
565
|
dismissTimer?: number;
|
|
560
566
|
/** The icon to be displayed. The property can be one of `CLIconNames`, e.g. `CLIconNames.Info`. */
|
|
@@ -571,11 +577,10 @@ export interface ToastProps {
|
|
|
571
577
|
rounded?: boolean;
|
|
572
578
|
/** Sets a custom ID used for unit tests. */
|
|
573
579
|
testId?: string;
|
|
574
|
-
/** Sets the theme of the Toast. The property can be one of `CLToastThemes`, e.g. `CLThemes.Default` */
|
|
575
|
-
theme?: ToastThemes;
|
|
576
580
|
/** Set the text of the title which should be displayed. */
|
|
577
581
|
title?: string;
|
|
582
|
+
/** Sets the color variant o the buttons and icons. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
583
|
+
variant?: ColorVariants;
|
|
578
584
|
/** Sets the width of the Toast, it's default value is `24rem`. */
|
|
579
585
|
width?: string;
|
|
580
586
|
}
|
|
581
|
-
export type ToastThemes = Extract<Themes, Themes.Danger | Themes.Default | Themes.Primary | Themes.Secondary | Themes.Success | Themes.Warning>;
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ interface ChildIsVisibleInput {
|
|
|
8
8
|
child: HTMLElement;
|
|
9
9
|
threshold?: number;
|
|
10
10
|
}
|
|
11
|
-
export declare const childIsVisible: ({ parent, child, threshold
|
|
11
|
+
export declare const childIsVisible: ({ parent, child, threshold }: ChildIsVisibleInput) => boolean;
|
|
12
12
|
export declare const debounce: (fn: () => void, ms?: number) => (this: any, ...args: any | any[]) => void;
|
|
13
|
-
export declare const hasSlotContent: (slots: any, slotName: string, component: string) => boolean;
|
|
14
13
|
export declare const isBrowser: boolean;
|
|
14
|
+
export declare const isDarkMode: () => boolean;
|
|
15
15
|
export declare const getMaxZIndex: () => number;
|
|
16
16
|
export {};
|
package/package.json
CHANGED
|
@@ -13,13 +13,15 @@
|
|
|
13
13
|
"simple",
|
|
14
14
|
"ui library",
|
|
15
15
|
"a11y",
|
|
16
|
-
"component library"
|
|
16
|
+
"component library",
|
|
17
|
+
"ui components",
|
|
18
|
+
"vuejs"
|
|
17
19
|
],
|
|
18
|
-
"version": "1.
|
|
20
|
+
"version": "2.1.0",
|
|
19
21
|
"license": "MIT",
|
|
20
22
|
"type": "module",
|
|
21
23
|
"scripts": {
|
|
22
|
-
"build:lib": "yarn export:icons && vite build
|
|
24
|
+
"build:lib": "yarn export:icons && vite build",
|
|
23
25
|
"build:watch": "vite build --watch",
|
|
24
26
|
"build:web": "yarn export:icons && yarn storybook build",
|
|
25
27
|
"coverage": "vitest run --coverage",
|
|
@@ -49,6 +51,7 @@
|
|
|
49
51
|
],
|
|
50
52
|
"main": "./dist/index.umd.cjs",
|
|
51
53
|
"module": "./dist/index.js",
|
|
54
|
+
"types": "./dist/index.d.ts",
|
|
52
55
|
"typings": "./dist/index.d.ts",
|
|
53
56
|
"exports": {
|
|
54
57
|
".": {
|
|
@@ -56,69 +59,76 @@
|
|
|
56
59
|
"import": "./dist/index.js",
|
|
57
60
|
"require": "./dist/index.umd.cjs"
|
|
58
61
|
},
|
|
59
|
-
"./
|
|
62
|
+
"./styles.css": "./dist/assets/styles.css"
|
|
60
63
|
},
|
|
61
|
-
"sideEffects": [
|
|
62
|
-
"**/*.css"
|
|
63
|
-
],
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@chromatic-com/storybook": "^3.2.
|
|
65
|
+
"@chromatic-com/storybook": "^3.2.4",
|
|
66
66
|
"@eslint/eslintrc": "^3.2.0",
|
|
67
|
-
"@eslint/js": "^9.
|
|
68
|
-
"@floating-ui/vue": "^1.1.
|
|
69
|
-
"@iconify-json/tabler": "^1.2.
|
|
67
|
+
"@eslint/js": "^9.18.0",
|
|
68
|
+
"@floating-ui/vue": "^1.1.6",
|
|
69
|
+
"@iconify-json/tabler": "^1.2.15",
|
|
70
|
+
"@iconify/tools": "^4.1.1",
|
|
70
71
|
"@iconify/types": "^2.0.0",
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@storybook/
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@storybook/
|
|
77
|
-
"@storybook/
|
|
78
|
-
"@storybook/
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
72
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
73
|
+
"@semantic-release/git": "^10.0.1",
|
|
74
|
+
"@semantic-release/gitlab": "^13.2.4",
|
|
75
|
+
"@storybook/addon-a11y": "^8.5.1",
|
|
76
|
+
"@storybook/addon-essentials": "^8.5.1",
|
|
77
|
+
"@storybook/addon-interactions": "^8.5.1",
|
|
78
|
+
"@storybook/cli": "^8.5.1",
|
|
79
|
+
"@storybook/core-server": "^8.5.1",
|
|
80
|
+
"@storybook/test": "^8.5.1",
|
|
81
|
+
"@storybook/test-runner": "^0.21.0",
|
|
82
|
+
"@storybook/vue3": "^8.5.1",
|
|
83
|
+
"@storybook/vue3-vite": "^8.5.1",
|
|
84
|
+
"@types/lodash-es": "^4.17.12",
|
|
85
|
+
"@types/node": "22.10.9",
|
|
82
86
|
"@types/stylis": "^4.2.7",
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
84
|
-
"@typescript-eslint/parser": "8.
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "8.21.0",
|
|
88
|
+
"@typescript-eslint/parser": "8.21.0",
|
|
85
89
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
86
90
|
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
91
|
+
"@vitest/browser": "3.0.3",
|
|
87
92
|
"@vitest/coverage-c8": "~0.33.0",
|
|
88
|
-
"@vitest/coverage-istanbul": "
|
|
89
|
-
"@vitest/coverage-v8": "
|
|
90
|
-
"@vitest/ui": "^
|
|
93
|
+
"@vitest/coverage-istanbul": "3.0.3",
|
|
94
|
+
"@vitest/coverage-v8": "3.0.3",
|
|
95
|
+
"@vitest/ui": "^3.0.3",
|
|
91
96
|
"@vue/test-utils": "^2.4.6",
|
|
92
97
|
"@vue/tsconfig": "^0.7.0",
|
|
93
98
|
"@wdns/vue-code-block": "^2.3.5",
|
|
94
|
-
"
|
|
95
|
-
"eslint
|
|
99
|
+
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
100
|
+
"eslint": "9.18.0",
|
|
101
|
+
"eslint-config-prettier": "10.0.1",
|
|
96
102
|
"eslint-plugin-vue": "^9.32.0",
|
|
97
|
-
"glob": "^11.0.
|
|
103
|
+
"glob": "^11.0.1",
|
|
98
104
|
"globals": "^15.14.0",
|
|
99
105
|
"husky": "^9.1.7",
|
|
100
|
-
"jsdom": "^
|
|
101
|
-
"lint-staged": "^15.
|
|
102
|
-
"lodash": "^4.17.21",
|
|
106
|
+
"jsdom": "^26.0.0",
|
|
107
|
+
"lint-staged": "^15.4.1",
|
|
108
|
+
"lodash-es": "^4.17.21",
|
|
103
109
|
"murmurhash": "^2.0.1",
|
|
104
110
|
"playwright": "^1.49.1",
|
|
105
111
|
"prettier": "^3.4.2",
|
|
106
|
-
"sass": "^1.83.
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"vite
|
|
112
|
+
"sass": "^1.83.4",
|
|
113
|
+
"semantic-release": "^24.2.1",
|
|
114
|
+
"storybook": "^8.5.1",
|
|
115
|
+
"stylis": "^4.3.5",
|
|
116
|
+
"typescript": "^5.7.3",
|
|
117
|
+
"unplugin-auto-import": "^19.0.0",
|
|
118
|
+
"vite": "6.0.11",
|
|
119
|
+
"vite-plugin-dts": "^4.5.0",
|
|
113
120
|
"vite-tsconfig-paths": "^5.1.4",
|
|
114
|
-
"vitest": "
|
|
121
|
+
"vitest": "3.0.3",
|
|
115
122
|
"vue": "^3.5.13",
|
|
116
123
|
"vue-router": "^4.5.0",
|
|
117
124
|
"vue-tsc": "^2.2.0"
|
|
118
125
|
},
|
|
119
|
-
"packageManager": "yarn@4.5.0",
|
|
120
126
|
"peerDependencies": {
|
|
121
|
-
"@floating-ui/vue": "^1.1.5",
|
|
122
127
|
"vue": "^3.5.10"
|
|
123
|
-
}
|
|
128
|
+
},
|
|
129
|
+
"packageManager": "yarn@4.5.0",
|
|
130
|
+
"sideEffects": [
|
|
131
|
+
"dist/*",
|
|
132
|
+
"*.css"
|
|
133
|
+
]
|
|
124
134
|
}
|