@cosxai/ui 0.13.3 → 0.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosxai/ui",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "COSX design system — React 19 component primitives shared across product-meta and other consumers",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -387,6 +387,11 @@ export const SignaturePad = forwardRef<SignaturePadHandle, SignaturePadProps>(
387
387
  const canvasStyle: CSSProperties = useMemo(
388
388
  () => ({
389
389
  width,
390
+ // Never overflow a narrow container (phone signing surface) —
391
+ // the bitmap keeps its logical resolution and the pointer
392
+ // handlers already rescale via getBoundingClientRect, so CSS
393
+ // shrink is loss-free for drawing accuracy.
394
+ maxWidth: "100%",
390
395
  height,
391
396
  border: "1px solid var(--ck-border-subtle, #d4d4d8)",
392
397
  borderRadius: "var(--ck-radius-sm, 6px)",
@@ -409,6 +414,8 @@ export const SignaturePad = forwardRef<SignaturePadHandle, SignaturePadProps>(
409
414
  fontSize: 14,
410
415
  fontFamily: "inherit",
411
416
  width,
417
+ maxWidth: "100%",
418
+ boxSizing: "border-box",
412
419
  }),
413
420
  [width],
414
421
  );