@sabrenski/spire-ui 0.0.21 → 0.0.22
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 +47 -28
- package/dist/spire-ui.css +1 -1
- package/dist/spire-ui.es.js +139 -136
- package/dist/spire-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/Toast/ToastProvider.test.ts +12 -0
- package/src/components/Toast/ToastProvider.vue +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -634,7 +634,11 @@ disabled: boolean;
|
|
|
634
634
|
orientation: "horizontal" | "vertical";
|
|
635
635
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
636
636
|
|
|
637
|
-
declare const __VLS_component_53: DefineComponent<
|
|
637
|
+
declare const __VLS_component_53: DefineComponent<ToastProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ToastProviderProps> & Readonly<{}>, {
|
|
638
|
+
position: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center";
|
|
639
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
640
|
+
|
|
641
|
+
declare const __VLS_component_54: DefineComponent<TooltipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TooltipProps> & Readonly<{}>, {
|
|
638
642
|
disabled: boolean;
|
|
639
643
|
delay: number;
|
|
640
644
|
placement: Placement;
|
|
@@ -644,7 +648,7 @@ triggerRef: HTMLSpanElement;
|
|
|
644
648
|
contentRef: HTMLDivElement;
|
|
645
649
|
}, any>;
|
|
646
650
|
|
|
647
|
-
declare const
|
|
651
|
+
declare const __VLS_component_55: DefineComponent<TreeViewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
648
652
|
"update:modelValue": (value: string | string[] | undefined) => any;
|
|
649
653
|
"update:expandedIds": (value: string[]) => any;
|
|
650
654
|
}, string, PublicProps, Readonly<TreeViewProps> & Readonly<{
|
|
@@ -655,15 +659,15 @@ expandedIds: string[];
|
|
|
655
659
|
multiSelect: boolean;
|
|
656
660
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
657
661
|
|
|
658
|
-
declare const
|
|
662
|
+
declare const __VLS_component_56: DefineComponent<TreeViewItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TreeViewItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
659
663
|
|
|
660
|
-
declare const
|
|
664
|
+
declare const __VLS_component_57: DefineComponent<ContainerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ContainerProps> & Readonly<{}>, {
|
|
661
665
|
as: string;
|
|
662
666
|
fluid: boolean;
|
|
663
667
|
centered: boolean;
|
|
664
668
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
665
669
|
|
|
666
|
-
declare const
|
|
670
|
+
declare const __VLS_component_58: DefineComponent<StackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<StackProps> & Readonly<{}>, {
|
|
667
671
|
as: string;
|
|
668
672
|
align: "start" | "center" | "end" | "stretch" | "baseline";
|
|
669
673
|
justify: "start" | "center" | "end" | "between" | "around" | "evenly";
|
|
@@ -673,17 +677,12 @@ direction: "row" | "column" | "row-reverse" | "column-reverse";
|
|
|
673
677
|
gap: SpacingToken;
|
|
674
678
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
675
679
|
|
|
676
|
-
declare const
|
|
680
|
+
declare const __VLS_component_59: DefineComponent<GridProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<GridProps> & Readonly<{}>, {
|
|
677
681
|
as: string;
|
|
678
682
|
columns: ColumnCount | ResponsiveColumns;
|
|
679
683
|
gap: SpacingToken;
|
|
680
684
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
681
685
|
|
|
682
|
-
declare const __VLS_component_59: DefineComponent<GridItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<GridItemProps> & Readonly<{}>, {
|
|
683
|
-
span: SpanCount | ResponsiveSpan;
|
|
684
|
-
as: string;
|
|
685
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
686
|
-
|
|
687
686
|
declare const __VLS_component_6: DefineComponent<BadgeContainerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BadgeContainerProps> & Readonly<{}>, {
|
|
688
687
|
position: BadgePosition;
|
|
689
688
|
offsetX: string;
|
|
@@ -693,6 +692,11 @@ cutout: boolean;
|
|
|
693
692
|
containerRef: HTMLSpanElement;
|
|
694
693
|
}, HTMLSpanElement>;
|
|
695
694
|
|
|
695
|
+
declare const __VLS_component_60: DefineComponent<GridItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<GridItemProps> & Readonly<{}>, {
|
|
696
|
+
span: SpanCount | ResponsiveSpan;
|
|
697
|
+
as: string;
|
|
698
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
699
|
+
|
|
696
700
|
declare const __VLS_component_7: DefineComponent<BreadcrumbRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BreadcrumbRootProps> & Readonly<{}>, {
|
|
697
701
|
separator: Component | string | (() => VNode);
|
|
698
702
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
@@ -1381,10 +1385,7 @@ declare function __VLS_template_53(): {
|
|
|
1381
1385
|
slots: {
|
|
1382
1386
|
default?(_: {}): any;
|
|
1383
1387
|
};
|
|
1384
|
-
refs: {
|
|
1385
|
-
triggerRef: HTMLSpanElement;
|
|
1386
|
-
contentRef: HTMLDivElement;
|
|
1387
|
-
};
|
|
1388
|
+
refs: {};
|
|
1388
1389
|
rootEl: any;
|
|
1389
1390
|
};
|
|
1390
1391
|
|
|
@@ -1393,8 +1394,11 @@ declare function __VLS_template_54(): {
|
|
|
1393
1394
|
slots: {
|
|
1394
1395
|
default?(_: {}): any;
|
|
1395
1396
|
};
|
|
1396
|
-
refs: {
|
|
1397
|
-
|
|
1397
|
+
refs: {
|
|
1398
|
+
triggerRef: HTMLSpanElement;
|
|
1399
|
+
contentRef: HTMLDivElement;
|
|
1400
|
+
};
|
|
1401
|
+
rootEl: any;
|
|
1398
1402
|
};
|
|
1399
1403
|
|
|
1400
1404
|
declare function __VLS_template_55(): {
|
|
@@ -1412,7 +1416,7 @@ declare function __VLS_template_56(): {
|
|
|
1412
1416
|
default?(_: {}): any;
|
|
1413
1417
|
};
|
|
1414
1418
|
refs: {};
|
|
1415
|
-
rootEl:
|
|
1419
|
+
rootEl: HTMLDivElement;
|
|
1416
1420
|
};
|
|
1417
1421
|
|
|
1418
1422
|
declare function __VLS_template_57(): {
|
|
@@ -1454,6 +1458,15 @@ declare function __VLS_template_6(): {
|
|
|
1454
1458
|
rootEl: HTMLSpanElement;
|
|
1455
1459
|
};
|
|
1456
1460
|
|
|
1461
|
+
declare function __VLS_template_60(): {
|
|
1462
|
+
attrs: Partial<{}>;
|
|
1463
|
+
slots: {
|
|
1464
|
+
default?(_: {}): any;
|
|
1465
|
+
};
|
|
1466
|
+
refs: {};
|
|
1467
|
+
rootEl: any;
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1457
1470
|
declare function __VLS_template_7(): {
|
|
1458
1471
|
attrs: Partial<{}>;
|
|
1459
1472
|
slots: Readonly<{
|
|
@@ -1597,6 +1610,8 @@ declare type __VLS_TemplateResult_59 = ReturnType<typeof __VLS_template_59>;
|
|
|
1597
1610
|
|
|
1598
1611
|
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
1599
1612
|
|
|
1613
|
+
declare type __VLS_TemplateResult_60 = ReturnType<typeof __VLS_template_60>;
|
|
1614
|
+
|
|
1600
1615
|
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
1601
1616
|
|
|
1602
1617
|
declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
|
|
@@ -1957,6 +1972,12 @@ declare type __VLS_WithTemplateSlots_62<T, S> = T & {
|
|
|
1957
1972
|
};
|
|
1958
1973
|
};
|
|
1959
1974
|
|
|
1975
|
+
declare type __VLS_WithTemplateSlots_63<T, S> = T & {
|
|
1976
|
+
new (): {
|
|
1977
|
+
$slots: S;
|
|
1978
|
+
};
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1960
1981
|
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
1961
1982
|
new (): {
|
|
1962
1983
|
$slots: S;
|
|
@@ -2648,7 +2669,7 @@ export declare interface ComboboxProps {
|
|
|
2648
2669
|
*/
|
|
2649
2670
|
export declare function configureIcons(userIcons: Partial<IconMap>): void;
|
|
2650
2671
|
|
|
2651
|
-
export declare const Container:
|
|
2672
|
+
export declare const Container: __VLS_WithTemplateSlots_60<typeof __VLS_component_57, __VLS_TemplateResult_57["slots"]>;
|
|
2652
2673
|
|
|
2653
2674
|
export declare interface ContainerProps {
|
|
2654
2675
|
/** Additional CSS classes */
|
|
@@ -3351,9 +3372,9 @@ export declare function getStaggerStyle(index: number, options?: {
|
|
|
3351
3372
|
*/
|
|
3352
3373
|
export declare function getWeekdayNames(locale?: string): string[];
|
|
3353
3374
|
|
|
3354
|
-
export declare const Grid:
|
|
3375
|
+
export declare const Grid: __VLS_WithTemplateSlots_62<typeof __VLS_component_59, __VLS_TemplateResult_59["slots"]>;
|
|
3355
3376
|
|
|
3356
|
-
export declare const GridItem:
|
|
3377
|
+
export declare const GridItem: __VLS_WithTemplateSlots_63<typeof __VLS_component_60, __VLS_TemplateResult_60["slots"]>;
|
|
3357
3378
|
|
|
3358
3379
|
export declare interface GridItemProps {
|
|
3359
3380
|
/** Additional CSS classes */
|
|
@@ -4721,7 +4742,7 @@ export declare interface SpireProviderProps {
|
|
|
4721
4742
|
tag?: string;
|
|
4722
4743
|
}
|
|
4723
4744
|
|
|
4724
|
-
export declare const Stack:
|
|
4745
|
+
export declare const Stack: __VLS_WithTemplateSlots_61<typeof __VLS_component_58, __VLS_TemplateResult_58["slots"]>;
|
|
4725
4746
|
|
|
4726
4747
|
export declare interface StackProps {
|
|
4727
4748
|
/** Additional CSS classes */
|
|
@@ -5190,9 +5211,7 @@ export declare interface ToastOptions {
|
|
|
5190
5211
|
};
|
|
5191
5212
|
}
|
|
5192
5213
|
|
|
5193
|
-
export declare const ToastProvider:
|
|
5194
|
-
position: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center";
|
|
5195
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
5214
|
+
export declare const ToastProvider: __VLS_WithTemplateSlots_56<typeof __VLS_component_53, __VLS_TemplateResult_53["slots"]>;
|
|
5196
5215
|
|
|
5197
5216
|
export declare interface ToastProviderProps {
|
|
5198
5217
|
/** Additional CSS classes */
|
|
@@ -5247,7 +5266,7 @@ export declare interface ToggleGroupProps {
|
|
|
5247
5266
|
orientation?: 'horizontal' | 'vertical';
|
|
5248
5267
|
}
|
|
5249
5268
|
|
|
5250
|
-
export declare const Tooltip:
|
|
5269
|
+
export declare const Tooltip: __VLS_WithTemplateSlots_57<typeof __VLS_component_54, __VLS_TemplateResult_54["slots"]>;
|
|
5251
5270
|
|
|
5252
5271
|
export declare interface TooltipData {
|
|
5253
5272
|
title: string;
|
|
@@ -5284,7 +5303,7 @@ export declare interface TreeNode {
|
|
|
5284
5303
|
isLeaf?: boolean;
|
|
5285
5304
|
}
|
|
5286
5305
|
|
|
5287
|
-
export declare const TreeView:
|
|
5306
|
+
export declare const TreeView: __VLS_WithTemplateSlots_58<typeof __VLS_component_55, __VLS_TemplateResult_55["slots"]>;
|
|
5288
5307
|
|
|
5289
5308
|
export declare interface TreeViewContext {
|
|
5290
5309
|
selectedIds: Ref<Set<string>>;
|
|
@@ -5303,7 +5322,7 @@ export declare interface TreeViewContext {
|
|
|
5303
5322
|
hasChildren: (id: string) => boolean;
|
|
5304
5323
|
}
|
|
5305
5324
|
|
|
5306
|
-
export declare const TreeViewItem:
|
|
5325
|
+
export declare const TreeViewItem: __VLS_WithTemplateSlots_59<typeof __VLS_component_56, __VLS_TemplateResult_56["slots"]>;
|
|
5307
5326
|
|
|
5308
5327
|
export declare interface TreeViewItemContext {
|
|
5309
5328
|
depth: number;
|