@rocketui/vue 0.2.13 → 0.2.14

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.
@@ -683,7 +683,34 @@ declare interface BadgeProps {
683
683
  * <Badge animation />
684
684
  */
685
685
  animation?: boolean;
686
+ /**
687
+ * Class of the Badge
688
+ * @type { string | string[] }
689
+ * @example
690
+ * <Badge class="text-red-500" />
691
+ */
686
692
  class?: string | string[];
693
+ /**
694
+ * Content of the Badge
695
+ * @type { string }
696
+ * @example
697
+ * <Badge content="99+" />
698
+ */
699
+ content?: string;
700
+ /**
701
+ * Class of the content of the Badge
702
+ * @type { string | string[] }
703
+ * @example
704
+ * <Badge contentClass="text-red-500" />
705
+ */
706
+ contentClass?: string | string[];
707
+ /**
708
+ * Wrapper class of the Badge
709
+ * @type { string | string[] }
710
+ * @example
711
+ * <Badge wrapperClass="text-red-500" />
712
+ */
713
+ wrapperClass?: string | string[];
687
714
  }
688
715
 
689
716
  declare interface BreadcrumbItem {
@@ -2009,6 +2036,8 @@ export declare const RBadge: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
2009
2036
  outside: boolean;
2010
2037
  animation: boolean;
2011
2038
  class: string;
2039
+ contentClass: string;
2040
+ wrapperClass: string;
2012
2041
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2013
2042
  click: (...args: any[]) => void;
2014
2043
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_4<BadgeProps>, {
@@ -2020,6 +2049,8 @@ export declare const RBadge: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
2020
2049
  outside: boolean;
2021
2050
  animation: boolean;
2022
2051
  class: string;
2052
+ contentClass: string;
2053
+ wrapperClass: string;
2023
2054
  }>>> & {
2024
2055
  onClick?: ((...args: any[]) => any) | undefined;
2025
2056
  }, {
@@ -2027,9 +2058,12 @@ export declare const RBadge: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
2027
2058
  variant: "primary" | "success" | "warning" | "error" | "neutral";
2028
2059
  hover: boolean;
2029
2060
  placement: "bottom" | "left" | "right";
2061
+ content: string;
2030
2062
  overlap: boolean;
2031
2063
  outside: boolean;
2032
2064
  animation: boolean;
2065
+ contentClass: string | string[];
2066
+ wrapperClass: string | string[];
2033
2067
  }, {}>, {
2034
2068
  default?(_: {}): any;
2035
2069
  }>;
@@ -7465,7 +7465,7 @@ const k2 = {
7465
7465
  }, null, 2)) : c("", !0)
7466
7466
  ]));
7467
7467
  }
7468
- }), N2 = { class: "r-badge-wrapper group" }, d0 = /* @__PURE__ */ T({
7468
+ }), N2 = ["innerHTML"], d0 = /* @__PURE__ */ T({
7469
7469
  __name: "RBadge",
7470
7470
  props: {
7471
7471
  variant: { default: "primary" },
@@ -7474,13 +7474,16 @@ const k2 = {
7474
7474
  hover: { type: Boolean, default: !1 },
7475
7475
  outside: { type: Boolean, default: !1 },
7476
7476
  animation: { type: Boolean, default: !1 },
7477
- class: { default: "" }
7477
+ class: { default: "" },
7478
+ content: { default: "" },
7479
+ contentClass: { default: "" },
7480
+ wrapperClass: { default: "" }
7478
7481
  },
7479
7482
  emits: ["click"],
7480
7483
  setup(H) {
7481
7484
  const V = H, C = g(() => ({
7482
7485
  "r-badge": !0,
7483
- "r-badge__content": V.content,
7486
+ [`r-badge--content ${V.contentClass}`]: V.content,
7484
7487
  [`r-badge--overlap-${V.placement}`]: V.overlap,
7485
7488
  [`r-badge--${V.placement}`]: V.placement,
7486
7489
  [`r-badge--outside-${V.placement}`]: V.outside,
@@ -7488,15 +7491,18 @@ const k2 = {
7488
7491
  [`r-badge--${V.variant}`]: V.variant,
7489
7492
  [V.class]: V.class
7490
7493
  }));
7491
- return (M, A) => (m(), r("div", N2, [
7494
+ return (M, A) => (m(), r("div", {
7495
+ class: p(["r-badge-wrapper group", [V.wrapperClass]])
7496
+ }, [
7492
7497
  S("span", {
7493
7498
  class: p([{ "animate-ping-2": V.animation }, C.value])
7494
7499
  }, null, 2),
7495
7500
  S("span", {
7496
- class: p(C.value)
7497
- }, null, 2),
7501
+ class: p(C.value),
7502
+ innerHTML: V.content
7503
+ }, null, 10, N2),
7498
7504
  f(M.$slots, "default")
7499
- ]));
7505
+ ], 2));
7500
7506
  }
7501
7507
  }), I2 = ["disabled"], t0 = /* @__PURE__ */ T({
7502
7508
  __name: "RButton",