@bizapps/design-system-testing 1.10.0 → 1.10.1

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/main.d.cts CHANGED
@@ -2366,7 +2366,7 @@ interface SignaturePadProps {
2366
2366
  throttle?: number;
2367
2367
  /** 0–1 weight of the previous velocity when computing width. Higher evens out width changes. */
2368
2368
  velocityFilterWeight?: number;
2369
- /** Accessible name of the built-in clear button. Pass a translated string from the app. */
2369
+ /** Visible text and accessible name of the built-in clear button. Pass a translated string from the app. */
2370
2370
  clearLabel: string;
2371
2371
  className?: string;
2372
2372
  /** Imperative handle with `clear`, `isEmpty` and `toBlob`. */
package/dist/main.d.ts CHANGED
@@ -2366,7 +2366,7 @@ interface SignaturePadProps {
2366
2366
  throttle?: number;
2367
2367
  /** 0–1 weight of the previous velocity when computing width. Higher evens out width changes. */
2368
2368
  velocityFilterWeight?: number;
2369
- /** Accessible name of the built-in clear button. Pass a translated string from the app. */
2369
+ /** Visible text and accessible name of the built-in clear button. Pass a translated string from the app. */
2370
2370
  clearLabel: string;
2371
2371
  className?: string;
2372
2372
  /** Imperative handle with `clear`, `isEmpty` and `toBlob`. */
package/dist/main.js CHANGED
@@ -9550,8 +9550,9 @@ function SignaturePad({
9550
9550
  className: cn(
9551
9551
  // Fixed light "paper": the pen is black and the PNG is read on white by others. The
9552
9552
  // primitive keeps the pad light for consumers that define a dark theme, where a themed
9553
- // surface (`background`, `border`) would turn dark and hide the black ink.
9554
- "bg-main-alternative-secondary border-dark-100 relative overflow-hidden rounded-xl border",
9553
+ // surface (`background`, `border`) would turn dark and hide the black ink. The edge
9554
+ // uses `dark-400` (4.66:1 on white) so the pad reads as a control (WCAG 1.4.11).
9555
+ "bg-main-alternative-secondary border-dark-400 relative overflow-hidden rounded-xl border",
9555
9556
  "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
9556
9557
  className
9557
9558
  ),
@@ -9569,21 +9570,23 @@ function SignaturePad({
9569
9570
  className: "block w-full touch-none"
9570
9571
  }
9571
9572
  ),
9572
- /* @__PURE__ */ jsx(
9573
+ /* @__PURE__ */ jsxs(
9573
9574
  Button,
9574
9575
  {
9575
9576
  type: "button",
9576
9577
  variant: "ghost",
9577
- size: "icon-sm",
9578
+ size: "sm",
9578
9579
  "data-slot": "signature-pad-clear",
9579
- "aria-label": clearLabel,
9580
9580
  disabled,
9581
9581
  "aria-disabled": empty && !disabled ? true : void 0,
9582
9582
  onClick: () => {
9583
9583
  if (!emptyRef.current) clear();
9584
9584
  },
9585
- className: "bg-main-white text-dark-600 border-dark-100 hover:bg-dark-100 hover:text-main-black aria-disabled:hover:bg-main-white absolute right-2 bottom-2 border border-solid aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
9586
- children: /* @__PURE__ */ jsx(BrushCleaning, { "aria-hidden": true, className: "size-4" })
9585
+ className: "bg-main-white text-dark-600 border-dark-400 hover:bg-dark-100 hover:text-main-black aria-disabled:hover:bg-main-white absolute right-2 bottom-2 h-11 max-w-[calc(100%-1rem)] gap-1.5 rounded-full border border-solid px-4 text-sm aria-disabled:cursor-not-allowed aria-disabled:opacity-70",
9586
+ children: [
9587
+ /* @__PURE__ */ jsx(BrushCleaning, { "aria-hidden": true, className: "size-4 shrink-0" }),
9588
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: clearLabel })
9589
+ ]
9587
9590
  }
9588
9591
  )
9589
9592
  ]