@namba_one/ui-kit-2 1.0.71 → 1.0.72

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
@@ -78,6 +78,11 @@ declare const __VLS_component_2: DefineComponent<TheTextProps, {}, {}, {}, {}, C
78
78
 
79
79
  declare const __VLS_component_20: DefineComponent<VerificationInfoCellProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<VerificationInfoCellProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
80
80
 
81
+ declare const __VLS_component_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
82
+ rootRef: HTMLDivElement;
83
+ toastersRef: HTMLDivElement[];
84
+ }, any>;
85
+
81
86
  declare const __VLS_component_3: DefineComponent<BadgeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
82
87
 
83
88
  declare const __VLS_component_4: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -397,6 +402,18 @@ declare function __VLS_template_20(): {
397
402
  rootEl: HTMLDivElement;
398
403
  };
399
404
 
405
+ declare function __VLS_template_21(): {
406
+ attrs: Partial<{}>;
407
+ slots: {
408
+ default?(_: {}): any;
409
+ };
410
+ refs: {
411
+ rootRef: HTMLDivElement;
412
+ toastersRef: HTMLDivElement[];
413
+ };
414
+ rootEl: any;
415
+ };
416
+
400
417
  declare function __VLS_template_3(): {
401
418
  attrs: Partial<{}>;
402
419
  slots: {
@@ -576,6 +593,8 @@ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
576
593
 
577
594
  declare type __VLS_TemplateResult_20 = ReturnType<typeof __VLS_template_20>;
578
595
 
596
+ declare type __VLS_TemplateResult_21 = ReturnType<typeof __VLS_template_21>;
597
+
579
598
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
580
599
 
581
600
  declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
@@ -668,6 +687,12 @@ declare type __VLS_WithTemplateSlots_20<T, S> = T & {
668
687
  };
669
688
  };
670
689
 
690
+ declare type __VLS_WithTemplateSlots_21<T, S> = T & {
691
+ new (): {
692
+ $slots: S;
693
+ };
694
+ };
695
+
671
696
  declare type __VLS_WithTemplateSlots_3<T, S> = T & {
672
697
  new (): {
673
698
  $slots: S;
@@ -1515,7 +1540,14 @@ export declare type TheTextSkeletonProps = {
1515
1540
 
1516
1541
  export declare type Toast = {
1517
1542
  title: string;
1518
- view: 'danger' | 'success';
1543
+ view: 'danger' | 'base' | 'primary';
1544
+ fontWeight?: 'medium' | 'regular';
1545
+ };
1546
+
1547
+ declare type Toast_2 = {
1548
+ title: string;
1549
+ view: 'danger' | 'base' | 'primary';
1550
+ fontWeight?: 'medium' | 'regular';
1519
1551
  };
1520
1552
 
1521
1553
  export declare const Toaster: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
@@ -1523,6 +1555,13 @@ rootRef: HTMLDivElement;
1523
1555
  toastersRef: HTMLDivElement[];
1524
1556
  }, HTMLDivElement>;
1525
1557
 
1558
+ declare type ToasterContext = {
1559
+ show(params: Toast_2 | string): void;
1560
+ showError(text?: string): void;
1561
+ };
1562
+
1563
+ export declare const ToasterProvider: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
1564
+
1526
1565
  export declare type ToastListItem = Toast & {
1527
1566
  id: number;
1528
1567
  };
@@ -1542,11 +1581,13 @@ export declare const toastService: ToastServiceImpl;
1542
1581
  declare class ToastServiceImpl implements ToastService {
1543
1582
  list: Ref<{
1544
1583
  title: string;
1545
- view: "danger" | "success";
1584
+ view: "danger" | "base" | "primary";
1585
+ fontWeight?: ("medium" | "regular") | undefined;
1546
1586
  id: number;
1547
1587
  }[], ToastListItem[] | {
1548
1588
  title: string;
1549
- view: "danger" | "success";
1589
+ view: "danger" | "base" | "primary";
1590
+ fontWeight?: ("medium" | "regular") | undefined;
1550
1591
  id: number;
1551
1592
  }[]>;
1552
1593
  private timeouts;
@@ -1699,6 +1740,8 @@ export declare type UserRowProps = {
1699
1740
 
1700
1741
  export declare const UserRowSkeleton: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1701
1742
 
1743
+ export declare const useToaster: () => ToasterContext;
1744
+
1702
1745
  declare type Value = ColorInput | undefined;
1703
1746
 
1704
1747
  export declare const VerificationInfoCell: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;