najm-kit 2.1.24 → 2.1.25
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 +1 -1
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1541,7 +1541,7 @@ interface UsageProps extends BaseProps$1 {
|
|
|
1541
1541
|
type NStatCardProps = DefaultProps | UsageProps | CompactProps;
|
|
1542
1542
|
declare function NStatCard(props: NStatCardProps): react_jsx_runtime.JSX.Element;
|
|
1543
1543
|
|
|
1544
|
-
type NDonutCardVariant = "compact" | "default" | "horizontal";
|
|
1544
|
+
type NDonutCardVariant = "compact" | "compact-horizontal" | "default" | "horizontal";
|
|
1545
1545
|
type NDonutCardLegendMarker = "dot" | "icon" | "none";
|
|
1546
1546
|
interface NDonutCardItem {
|
|
1547
1547
|
id: string;
|
package/dist/index.mjs
CHANGED
|
@@ -5736,6 +5736,7 @@ function NStatCard(props) {
|
|
|
5736
5736
|
}
|
|
5737
5737
|
var SIZE = {
|
|
5738
5738
|
compact: { ring: 96, center: 72 },
|
|
5739
|
+
"compact-horizontal": { ring: 96, center: 72 },
|
|
5739
5740
|
default: { ring: 144, center: 112 },
|
|
5740
5741
|
horizontal: { ring: 128, center: 92 }
|
|
5741
5742
|
};
|
|
@@ -5835,8 +5836,8 @@ function NDonutCard({
|
|
|
5835
5836
|
const sz = SIZE[variant];
|
|
5836
5837
|
const isTitleString = typeof title === "string";
|
|
5837
5838
|
const accessibleLabel = isTitleString ? title : ariaLabel;
|
|
5838
|
-
const isCompact = variant === "compact";
|
|
5839
|
-
const isHorizontal = variant === "horizontal";
|
|
5839
|
+
const isCompact = variant === "compact" || variant === "compact-horizontal";
|
|
5840
|
+
const isHorizontal = variant === "horizontal" || variant === "compact-horizontal";
|
|
5840
5841
|
const ringStyle = {
|
|
5841
5842
|
width: sz.ring,
|
|
5842
5843
|
height: sz.ring
|
|
@@ -5914,8 +5915,7 @@ function NDonutCard({
|
|
|
5914
5915
|
"data-slot": "donut-center-value",
|
|
5915
5916
|
className: cn(
|
|
5916
5917
|
"font-bold tabular-nums text-foreground leading-none break-words",
|
|
5917
|
-
isCompact ? "text-xs" : "text-base"
|
|
5918
|
-
isHorizontal && "text-sm"
|
|
5918
|
+
isCompact ? "text-xs" : isHorizontal ? "text-sm" : "text-base"
|
|
5919
5919
|
),
|
|
5920
5920
|
children: (centerValueFormatter ?? valueFormatter)(computedTotal)
|
|
5921
5921
|
}
|