design-zystem 1.0.415 → 1.0.416

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.
@@ -63,6 +63,7 @@ interface BoxProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof b
63
63
  /** Left accent bar — status/score encoding. */
64
64
  accent?: ColorToken | 'none';
65
65
  width?: string;
66
+ hexBackground?: HexColor;
66
67
  }
67
68
  /**
68
69
  * Surface bordée/ombrée. Ne gère pas le flex — composer avec `Layout` pour
@@ -63,6 +63,7 @@ interface BoxProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof b
63
63
  /** Left accent bar — status/score encoding. */
64
64
  accent?: ColorToken | 'none';
65
65
  width?: string;
66
+ hexBackground?: HexColor;
66
67
  }
67
68
  /**
68
69
  * Surface bordée/ombrée. Ne gère pas le flex — composer avec `Layout` pour
package/dist/ui/index.js CHANGED
@@ -532,6 +532,7 @@ var Box = (0, import_react2.forwardRef)(
532
532
  hasShadow,
533
533
  accent = "none",
534
534
  width,
535
+ hexBackground,
535
536
  className,
536
537
  style
537
538
  } = _b, props = __objRest(_b, [
@@ -540,6 +541,7 @@ var Box = (0, import_react2.forwardRef)(
540
541
  "hasShadow",
541
542
  "accent",
542
543
  "width",
544
+ "hexBackground",
543
545
  "className",
544
546
  "style"
545
547
  ]);
@@ -552,7 +554,7 @@ var Box = (0, import_react2.forwardRef)(
552
554
  ACCENT_CLASS[accent],
553
555
  className
554
556
  ),
555
- style: width ? __spreadValues({ width }, style) : style
557
+ style: __spreadValues(__spreadValues(__spreadValues({}, width && { width }), hexBackground && { backgroundColor: hexBackground }), style)
556
558
  }, props)
557
559
  );
558
560
  }
package/dist/ui/index.mjs CHANGED
@@ -329,6 +329,7 @@ var Box = forwardRef2(
329
329
  hasShadow,
330
330
  accent = "none",
331
331
  width,
332
+ hexBackground,
332
333
  className,
333
334
  style
334
335
  } = _b, props = __objRest(_b, [
@@ -337,6 +338,7 @@ var Box = forwardRef2(
337
338
  "hasShadow",
338
339
  "accent",
339
340
  "width",
341
+ "hexBackground",
340
342
  "className",
341
343
  "style"
342
344
  ]);
@@ -349,7 +351,7 @@ var Box = forwardRef2(
349
351
  ACCENT_CLASS[accent],
350
352
  className
351
353
  ),
352
- style: width ? __spreadValues({ width }, style) : style
354
+ style: __spreadValues(__spreadValues(__spreadValues({}, width && { width }), hexBackground && { backgroundColor: hexBackground }), style)
353
355
  }, props)
354
356
  );
355
357
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.415",
3
+ "version": "1.0.416",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",