@nswds/app 1.126.3 → 1.126.4

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 CHANGED
@@ -4729,14 +4729,14 @@
4729
4729
  --tw-shadow: -1px 0 0 0 var(--tw-shadow-color, var(--nsw-card-border)), 1px 0 0 0 var(--tw-shadow-color, var(--nsw-card-border)), 0 -1px 0 0 var(--tw-shadow-color, var(--nsw-card-border)), 0 4px 0 0 var(--tw-shadow-color, var(--nsw-card-top-border-base));
4730
4730
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4731
4731
  }
4732
- .shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\] {
4733
- --tw-shadow: 0 0 0 1px var(--tw-shadow-color, hsl(var(--sidebar-border)));
4734
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4735
- }
4736
4732
  .shadow-\[0_0_0_1px_rgba\(0\,0\,0\,0\.28\)\] {
4737
4733
  --tw-shadow: 0 0 0 1px var(--tw-shadow-color, rgba(0,0,0,0.28));
4738
4734
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4739
4735
  }
4736
+ .shadow-\[0_0_0_1px_var\(--sidebar-border\)\] {
4737
+ --tw-shadow: 0 0 0 1px var(--tw-shadow-color, var(--sidebar-border));
4738
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4739
+ }
4740
4740
  .shadow-lg {
4741
4741
  --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
4742
4742
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -6783,8 +6783,8 @@
6783
6783
  .hover\:opacity-50:hover {
6784
6784
  opacity: 50%;
6785
6785
  }
6786
- .hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover {
6787
- --tw-shadow: 0 0 0 1px var(--tw-shadow-color, hsl(var(--sidebar-accent)));
6786
+ .hover\:shadow-\[0_0_0_1px_var\(--sidebar-accent\)\]:hover {
6787
+ --tw-shadow: 0 0 0 1px var(--tw-shadow-color, var(--sidebar-accent));
6788
6788
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
6789
6789
  }
6790
6790
  .hover\:shadow-sm:hover {
package/dist/index.cjs CHANGED
@@ -8342,7 +8342,7 @@ function ChartTooltipContent({
8342
8342
  )
8343
8343
  ] })
8344
8344
  },
8345
- item.dataKey
8345
+ key
8346
8346
  );
8347
8347
  }) })
8348
8348
  ]
@@ -13469,24 +13469,6 @@ var ChartTooltip5 = ({ active, payload, valueFormatter }) => {
13469
13469
  }
13470
13470
  return null;
13471
13471
  };
13472
- var renderInactiveShape = (props) => {
13473
- const { cx, cy, innerRadius, outerRadius, startAngle, endAngle, className } = props;
13474
- return /* @__PURE__ */ jsxRuntime.jsx(
13475
- RechartsPrimitive.Sector,
13476
- {
13477
- cx,
13478
- cy,
13479
- innerRadius,
13480
- outerRadius,
13481
- startAngle,
13482
- endAngle,
13483
- className,
13484
- fill: "",
13485
- opacity: 0.3,
13486
- style: { outline: "none" }
13487
- }
13488
- );
13489
- };
13490
13472
  var DonutChart = React5__namespace.default.forwardRef(
13491
13473
  ({
13492
13474
  data = [],
@@ -13527,6 +13509,10 @@ var DonutChart = React5__namespace.default.forwardRef(
13527
13509
  });
13528
13510
  }
13529
13511
  };
13512
+ const renderShape3 = (props) => {
13513
+ const isInactive = activeIndex !== void 0 && props.index !== activeIndex;
13514
+ return /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.Sector, { ...props, opacity: isInactive ? 0.3 : 1, style: { outline: "none" } });
13515
+ };
13530
13516
  return /* @__PURE__ */ jsxRuntime.jsx(
13531
13517
  "div",
13532
13518
  {
@@ -13574,8 +13560,7 @@ var DonutChart = React5__namespace.default.forwardRef(
13574
13560
  nameKey: category,
13575
13561
  isAnimationActive: false,
13576
13562
  onClick: handleShapeClick,
13577
- activeIndex,
13578
- inactiveShape: renderInactiveShape,
13563
+ shape: renderShape3,
13579
13564
  style: { outline: "none" }
13580
13565
  }
13581
13566
  ),
@@ -14486,7 +14471,7 @@ function FormatToggle({ format, setFormat }) {
14486
14471
 
14487
14472
  // package.json
14488
14473
  var package_default = {
14489
- version: "1.126.2"};
14474
+ version: "1.126.3"};
14490
14475
  var SluggerContext = React5__namespace.default.createContext(null);
14491
14476
  function flattenText(nodes) {
14492
14477
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -27304,7 +27289,7 @@ var sidebarMenuButtonVariants = classVarianceAuthority.cva(
27304
27289
  variants: {
27305
27290
  variant: {
27306
27291
  default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
27307
- outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
27292
+ 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)]"
27308
27293
  },
27309
27294
  size: {
27310
27295
  default: "h-8 text-sm",
@@ -29580,12 +29565,12 @@ var CodeBlock = ({
29580
29565
  margin: 0,
29581
29566
  padding: "1rem",
29582
29567
  fontSize: "0.875rem",
29583
- background: "hsl(var(--background))",
29584
- color: "hsl(var(--foreground))"
29568
+ background: "var(--background)",
29569
+ color: "var(--foreground)"
29585
29570
  },
29586
29571
  language,
29587
29572
  lineNumberStyle: {
29588
- color: "hsl(var(--muted-foreground))",
29573
+ color: "var(--muted-foreground)",
29589
29574
  paddingRight: "1rem",
29590
29575
  minWidth: "2.5rem"
29591
29576
  },
@@ -29605,12 +29590,12 @@ var CodeBlock = ({
29605
29590
  margin: 0,
29606
29591
  padding: "1rem",
29607
29592
  fontSize: "0.875rem",
29608
- background: "hsl(var(--background))",
29609
- color: "hsl(var(--foreground))"
29593
+ background: "var(--background)",
29594
+ color: "var(--foreground)"
29610
29595
  },
29611
29596
  language,
29612
29597
  lineNumberStyle: {
29613
- color: "hsl(var(--muted-foreground))",
29598
+ color: "var(--muted-foreground)",
29614
29599
  paddingRight: "1rem",
29615
29600
  minWidth: "2.5rem"
29616
29601
  },