@idbrnd/design-system 1.12.1 → 1.12.3
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 +1 -1
- package/dist/components/Feedback/PushBadge/PushBadge.d.ts +2 -1
- package/dist/index.js +19 -18
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @idbrnd/design-system
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
5
5
|

|
|
6
6
|

|
|
@@ -3,11 +3,12 @@ export type PushBadgeVariant = 'dot' | 'number' | 'info';
|
|
|
3
3
|
export interface PushBadgeProps {
|
|
4
4
|
variant?: PushBadgeVariant;
|
|
5
5
|
count?: number;
|
|
6
|
+
maxCount?: number;
|
|
6
7
|
bgColor?: string;
|
|
7
8
|
color?: string;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
customStyle?: CSSProperties;
|
|
10
11
|
className?: string;
|
|
11
12
|
}
|
|
12
|
-
declare function PushBadge({ variant, count, bgColor, color, disabled, customStyle, className }: PushBadgeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
declare function PushBadge({ variant, count, maxCount, bgColor, color, disabled, customStyle, className }: PushBadgeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
14
|
export default PushBadge;
|
package/dist/index.js
CHANGED
|
@@ -969,21 +969,22 @@ const Hr = "_badge_iiym7_1", Wr = "_dot_iiym7_16", qr = "_number_iiym7_23", Vr =
|
|
|
969
969
|
function c0({
|
|
970
970
|
variant: e = "number",
|
|
971
971
|
count: t = 1,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
972
|
+
maxCount: n = 999,
|
|
973
|
+
bgColor: o,
|
|
974
|
+
color: s,
|
|
975
|
+
disabled: l = !1,
|
|
976
|
+
customStyle: r = {},
|
|
977
|
+
className: c
|
|
977
978
|
}) {
|
|
978
|
-
if (
|
|
979
|
+
if (l)
|
|
979
980
|
return null;
|
|
980
|
-
const
|
|
981
|
-
...
|
|
982
|
-
...
|
|
983
|
-
...
|
|
984
|
-
},
|
|
985
|
-
return /* @__PURE__ */ T("span", { "data-idb-component": !0, className:
|
|
986
|
-
e === "number" ?
|
|
981
|
+
const i = t > n ? `${n}+` : t, d = {
|
|
982
|
+
...o ? { backgroundColor: o } : {},
|
|
983
|
+
...s ? { color: s } : {},
|
|
984
|
+
...r
|
|
985
|
+
}, p = [on.badge, on[e], c ?? ""].filter(Boolean).join(" ");
|
|
986
|
+
return /* @__PURE__ */ T("span", { "data-idb-component": !0, className: p, style: d, children: [
|
|
987
|
+
e === "number" ? i : null,
|
|
987
988
|
e === "info" ? "?" : null
|
|
988
989
|
] });
|
|
989
990
|
}
|
|
@@ -3625,7 +3626,7 @@ function w0({
|
|
|
3625
3626
|
}
|
|
3626
3627
|
);
|
|
3627
3628
|
}
|
|
3628
|
-
const Za = "
|
|
3629
|
+
const Za = "_tab_1mhbg_2", Ja = "_fill_1mhbg_11", ed = "_horizontalPadding_1mhbg_15", td = "_emblaWrapper_1mhbg_20", nd = "_emblaViewport_1mhbg_25", od = "_emblaContainer_1mhbg_30", sd = "_overflowing_1mhbg_37", rd = "_trailingSlot_1mhbg_42", id = "_tabItem_1mhbg_50", ld = "_selected_1mhbg_86", cd = "_disabled_1mhbg_92", ad = "_dotBadge_1mhbg_100", dd = "_numberBadge_1mhbg_105", ud = "_labelWrapper_1mhbg_112", fd = "_labelText_1mhbg_119", md = "_numberBadgePadded_1mhbg_152", _d = "_indicator_1mhbg_158", pd = "_large_1mhbg_173", gd = "_medium_1mhbg_179", hd = "_small_1mhbg_185", oe = {
|
|
3629
3630
|
tab: Za,
|
|
3630
3631
|
fill: Ja,
|
|
3631
3632
|
horizontalPadding: ed,
|
|
@@ -3637,10 +3638,10 @@ const Za = "_tab_1et42_2", Ja = "_fill_1et42_11", ed = "_horizontalPadding_1et42
|
|
|
3637
3638
|
tabItem: id,
|
|
3638
3639
|
selected: ld,
|
|
3639
3640
|
disabled: cd,
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3641
|
+
dotBadge: ad,
|
|
3642
|
+
numberBadge: dd,
|
|
3643
|
+
labelWrapper: ud,
|
|
3644
|
+
labelText: fd,
|
|
3644
3645
|
numberBadgePadded: md,
|
|
3645
3646
|
indicator: _d,
|
|
3646
3647
|
large: pd,
|