@namba_one/ui-kit-2 1.0.70 → 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;
@@ -855,6 +880,13 @@ export declare type CardContentSkeletonProps = {
855
880
  isShowImage?: boolean;
856
881
  };
857
882
 
883
+ export declare const CellInfo: DefineComponent<CellInfoProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<CellInfoProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
884
+
885
+ export declare type CellInfoProps = {
886
+ label: string;
887
+ value: string;
888
+ };
889
+
858
890
  export declare const Checkbox: DefineComponent<CheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
859
891
  "update:value": (value: boolean) => any;
860
892
  }, string, PublicProps, Readonly<CheckboxProps> & Readonly<{
@@ -1508,7 +1540,14 @@ export declare type TheTextSkeletonProps = {
1508
1540
 
1509
1541
  export declare type Toast = {
1510
1542
  title: string;
1511
- 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';
1512
1551
  };
1513
1552
 
1514
1553
  export declare const Toaster: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
@@ -1516,6 +1555,13 @@ rootRef: HTMLDivElement;
1516
1555
  toastersRef: HTMLDivElement[];
1517
1556
  }, HTMLDivElement>;
1518
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
+
1519
1565
  export declare type ToastListItem = Toast & {
1520
1566
  id: number;
1521
1567
  };
@@ -1535,11 +1581,13 @@ export declare const toastService: ToastServiceImpl;
1535
1581
  declare class ToastServiceImpl implements ToastService {
1536
1582
  list: Ref<{
1537
1583
  title: string;
1538
- view: "danger" | "success";
1584
+ view: "danger" | "base" | "primary";
1585
+ fontWeight?: ("medium" | "regular") | undefined;
1539
1586
  id: number;
1540
1587
  }[], ToastListItem[] | {
1541
1588
  title: string;
1542
- view: "danger" | "success";
1589
+ view: "danger" | "base" | "primary";
1590
+ fontWeight?: ("medium" | "regular") | undefined;
1543
1591
  id: number;
1544
1592
  }[]>;
1545
1593
  private timeouts;
@@ -1692,6 +1740,8 @@ export declare type UserRowProps = {
1692
1740
 
1693
1741
  export declare const UserRowSkeleton: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1694
1742
 
1743
+ export declare const useToaster: () => ToasterContext;
1744
+
1695
1745
  declare type Value = ColorInput | undefined;
1696
1746
 
1697
1747
  export declare const VerificationInfoCell: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;