@nswds/app 1.126.3 → 1.126.5
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/globals.css +6 -6
- package/dist/index.cjs +14 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +14 -29
- package/dist/index.js.map +1 -1
- package/dist/styles.css +6 -6
- package/dist/styles.css.map +1 -1
- package/package.json +2 -4
package/dist/index.d.cts
CHANGED
|
@@ -179,7 +179,7 @@ type PayloadItem$4 = {
|
|
|
179
179
|
interface ChartTooltipProps$4 {
|
|
180
180
|
active: boolean | undefined;
|
|
181
181
|
payload: PayloadItem$4[];
|
|
182
|
-
label: string;
|
|
182
|
+
label: string | number | undefined;
|
|
183
183
|
valueFormatter: (value: number) => string;
|
|
184
184
|
}
|
|
185
185
|
type BaseEventProps$4 = {
|
|
@@ -259,7 +259,7 @@ type PayloadItem$3 = {
|
|
|
259
259
|
interface ChartTooltipProps$3 {
|
|
260
260
|
active: boolean | undefined;
|
|
261
261
|
payload: PayloadItem$3[];
|
|
262
|
-
label: string;
|
|
262
|
+
label: string | number | undefined;
|
|
263
263
|
valueFormatter: (value: number) => string;
|
|
264
264
|
}
|
|
265
265
|
type BaseEventProps$3 = {
|
|
@@ -810,9 +810,9 @@ declare function ChartTooltipContent({ active, payload, className, indicator, hi
|
|
|
810
810
|
indicator?: 'line' | 'dot' | 'dashed';
|
|
811
811
|
nameKey?: string;
|
|
812
812
|
labelKey?: string;
|
|
813
|
-
}): react.JSX.Element | null;
|
|
814
|
-
declare const ChartLegend:
|
|
815
|
-
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: react.ComponentProps<'div'> & Pick<RechartsPrimitive.
|
|
813
|
+
} & Omit<RechartsPrimitive.DefaultTooltipContentProps, 'accessibilityLayer'>): react.JSX.Element | null;
|
|
814
|
+
declare const ChartLegend: react.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => react.ReactPortal | null>;
|
|
815
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: react.ComponentProps<'div'> & Pick<RechartsPrimitive.DefaultLegendContentProps, 'payload' | 'verticalAlign'> & {
|
|
816
816
|
hideIcon?: boolean;
|
|
817
817
|
nameKey?: string;
|
|
818
818
|
}): react.JSX.Element | null;
|
|
@@ -860,7 +860,7 @@ type PayloadItem$2 = {
|
|
|
860
860
|
interface ChartTooltipProps$2 {
|
|
861
861
|
active: boolean | undefined;
|
|
862
862
|
payload: PayloadItem$2[];
|
|
863
|
-
label: string;
|
|
863
|
+
label: string | number | undefined;
|
|
864
864
|
barValueFormatter?: (value: number) => string;
|
|
865
865
|
lineValueFormatter?: (value: number) => string;
|
|
866
866
|
}
|
|
@@ -5268,7 +5268,7 @@ type PayloadItem = {
|
|
|
5268
5268
|
interface ChartTooltipProps {
|
|
5269
5269
|
active: boolean | undefined;
|
|
5270
5270
|
payload: PayloadItem[];
|
|
5271
|
-
label: string;
|
|
5271
|
+
label: string | number | undefined;
|
|
5272
5272
|
valueFormatter: (value: number) => string;
|
|
5273
5273
|
}
|
|
5274
5274
|
type BaseEventProps = {
|
package/dist/index.d.ts
CHANGED
|
@@ -179,7 +179,7 @@ type PayloadItem$4 = {
|
|
|
179
179
|
interface ChartTooltipProps$4 {
|
|
180
180
|
active: boolean | undefined;
|
|
181
181
|
payload: PayloadItem$4[];
|
|
182
|
-
label: string;
|
|
182
|
+
label: string | number | undefined;
|
|
183
183
|
valueFormatter: (value: number) => string;
|
|
184
184
|
}
|
|
185
185
|
type BaseEventProps$4 = {
|
|
@@ -259,7 +259,7 @@ type PayloadItem$3 = {
|
|
|
259
259
|
interface ChartTooltipProps$3 {
|
|
260
260
|
active: boolean | undefined;
|
|
261
261
|
payload: PayloadItem$3[];
|
|
262
|
-
label: string;
|
|
262
|
+
label: string | number | undefined;
|
|
263
263
|
valueFormatter: (value: number) => string;
|
|
264
264
|
}
|
|
265
265
|
type BaseEventProps$3 = {
|
|
@@ -810,9 +810,9 @@ declare function ChartTooltipContent({ active, payload, className, indicator, hi
|
|
|
810
810
|
indicator?: 'line' | 'dot' | 'dashed';
|
|
811
811
|
nameKey?: string;
|
|
812
812
|
labelKey?: string;
|
|
813
|
-
}): react.JSX.Element | null;
|
|
814
|
-
declare const ChartLegend:
|
|
815
|
-
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: react.ComponentProps<'div'> & Pick<RechartsPrimitive.
|
|
813
|
+
} & Omit<RechartsPrimitive.DefaultTooltipContentProps, 'accessibilityLayer'>): react.JSX.Element | null;
|
|
814
|
+
declare const ChartLegend: react.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => react.ReactPortal | null>;
|
|
815
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: react.ComponentProps<'div'> & Pick<RechartsPrimitive.DefaultLegendContentProps, 'payload' | 'verticalAlign'> & {
|
|
816
816
|
hideIcon?: boolean;
|
|
817
817
|
nameKey?: string;
|
|
818
818
|
}): react.JSX.Element | null;
|
|
@@ -860,7 +860,7 @@ type PayloadItem$2 = {
|
|
|
860
860
|
interface ChartTooltipProps$2 {
|
|
861
861
|
active: boolean | undefined;
|
|
862
862
|
payload: PayloadItem$2[];
|
|
863
|
-
label: string;
|
|
863
|
+
label: string | number | undefined;
|
|
864
864
|
barValueFormatter?: (value: number) => string;
|
|
865
865
|
lineValueFormatter?: (value: number) => string;
|
|
866
866
|
}
|
|
@@ -5268,7 +5268,7 @@ type PayloadItem = {
|
|
|
5268
5268
|
interface ChartTooltipProps {
|
|
5269
5269
|
active: boolean | undefined;
|
|
5270
5270
|
payload: PayloadItem[];
|
|
5271
|
-
label: string;
|
|
5271
|
+
label: string | number | undefined;
|
|
5272
5272
|
valueFormatter: (value: number) => string;
|
|
5273
5273
|
}
|
|
5274
5274
|
type BaseEventProps = {
|
package/dist/index.js
CHANGED
|
@@ -8286,7 +8286,7 @@ function ChartTooltipContent({
|
|
|
8286
8286
|
)
|
|
8287
8287
|
] })
|
|
8288
8288
|
},
|
|
8289
|
-
|
|
8289
|
+
key
|
|
8290
8290
|
);
|
|
8291
8291
|
}) })
|
|
8292
8292
|
]
|
|
@@ -13413,24 +13413,6 @@ var ChartTooltip5 = ({ active, payload, valueFormatter }) => {
|
|
|
13413
13413
|
}
|
|
13414
13414
|
return null;
|
|
13415
13415
|
};
|
|
13416
|
-
var renderInactiveShape = (props) => {
|
|
13417
|
-
const { cx, cy, innerRadius, outerRadius, startAngle, endAngle, className } = props;
|
|
13418
|
-
return /* @__PURE__ */ jsx(
|
|
13419
|
-
Sector,
|
|
13420
|
-
{
|
|
13421
|
-
cx,
|
|
13422
|
-
cy,
|
|
13423
|
-
innerRadius,
|
|
13424
|
-
outerRadius,
|
|
13425
|
-
startAngle,
|
|
13426
|
-
endAngle,
|
|
13427
|
-
className,
|
|
13428
|
-
fill: "",
|
|
13429
|
-
opacity: 0.3,
|
|
13430
|
-
style: { outline: "none" }
|
|
13431
|
-
}
|
|
13432
|
-
);
|
|
13433
|
-
};
|
|
13434
13416
|
var DonutChart = React5__default.forwardRef(
|
|
13435
13417
|
({
|
|
13436
13418
|
data = [],
|
|
@@ -13471,6 +13453,10 @@ var DonutChart = React5__default.forwardRef(
|
|
|
13471
13453
|
});
|
|
13472
13454
|
}
|
|
13473
13455
|
};
|
|
13456
|
+
const renderShape3 = (props) => {
|
|
13457
|
+
const isInactive = activeIndex !== void 0 && props.index !== activeIndex;
|
|
13458
|
+
return /* @__PURE__ */ jsx(Sector, { ...props, opacity: isInactive ? 0.3 : 1, style: { outline: "none" } });
|
|
13459
|
+
};
|
|
13474
13460
|
return /* @__PURE__ */ jsx(
|
|
13475
13461
|
"div",
|
|
13476
13462
|
{
|
|
@@ -13518,8 +13504,7 @@ var DonutChart = React5__default.forwardRef(
|
|
|
13518
13504
|
nameKey: category,
|
|
13519
13505
|
isAnimationActive: false,
|
|
13520
13506
|
onClick: handleShapeClick,
|
|
13521
|
-
|
|
13522
|
-
inactiveShape: renderInactiveShape,
|
|
13507
|
+
shape: renderShape3,
|
|
13523
13508
|
style: { outline: "none" }
|
|
13524
13509
|
}
|
|
13525
13510
|
),
|
|
@@ -14430,7 +14415,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
14430
14415
|
|
|
14431
14416
|
// package.json
|
|
14432
14417
|
var package_default = {
|
|
14433
|
-
version: "1.126.
|
|
14418
|
+
version: "1.126.4"};
|
|
14434
14419
|
var SluggerContext = React5__default.createContext(null);
|
|
14435
14420
|
function flattenText(nodes) {
|
|
14436
14421
|
if (nodes == null || typeof nodes === "boolean") return "";
|
|
@@ -27248,7 +27233,7 @@ var sidebarMenuButtonVariants = cva(
|
|
|
27248
27233
|
variants: {
|
|
27249
27234
|
variant: {
|
|
27250
27235
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
27251
|
-
outline: "bg-background shadow-[
|
|
27236
|
+
outline: "bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"
|
|
27252
27237
|
},
|
|
27253
27238
|
size: {
|
|
27254
27239
|
default: "h-8 text-sm",
|
|
@@ -29524,12 +29509,12 @@ var CodeBlock = ({
|
|
|
29524
29509
|
margin: 0,
|
|
29525
29510
|
padding: "1rem",
|
|
29526
29511
|
fontSize: "0.875rem",
|
|
29527
|
-
background: "
|
|
29528
|
-
color: "
|
|
29512
|
+
background: "var(--background)",
|
|
29513
|
+
color: "var(--foreground)"
|
|
29529
29514
|
},
|
|
29530
29515
|
language,
|
|
29531
29516
|
lineNumberStyle: {
|
|
29532
|
-
color: "
|
|
29517
|
+
color: "var(--muted-foreground)",
|
|
29533
29518
|
paddingRight: "1rem",
|
|
29534
29519
|
minWidth: "2.5rem"
|
|
29535
29520
|
},
|
|
@@ -29549,12 +29534,12 @@ var CodeBlock = ({
|
|
|
29549
29534
|
margin: 0,
|
|
29550
29535
|
padding: "1rem",
|
|
29551
29536
|
fontSize: "0.875rem",
|
|
29552
|
-
background: "
|
|
29553
|
-
color: "
|
|
29537
|
+
background: "var(--background)",
|
|
29538
|
+
color: "var(--foreground)"
|
|
29554
29539
|
},
|
|
29555
29540
|
language,
|
|
29556
29541
|
lineNumberStyle: {
|
|
29557
|
-
color: "
|
|
29542
|
+
color: "var(--muted-foreground)",
|
|
29558
29543
|
paddingRight: "1rem",
|
|
29559
29544
|
minWidth: "2.5rem"
|
|
29560
29545
|
},
|