@indico-data/design-system 2.36.4 → 2.37.0

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/lib/index.js CHANGED
@@ -21080,7 +21080,7 @@ const Form = (_a) => {
21080
21080
 
21081
21081
  const Skeleton = (_a) => {
21082
21082
  var { className, height, width, isCircle, isFullHeight } = _a, rest = __rest$1(_a, ["className", "height", "width", "isCircle", "isFullHeight"]);
21083
- const dynamicStyle = Object.assign(Object.assign({}, (height && { height: `${height}px` })), (width && { width: `${width}px` }));
21083
+ const dynamicStyle = Object.assign(Object.assign({}, (height && { height: typeof height === 'number' ? `${height}px` : height })), (width && { width: typeof width === 'number' ? `${width}px` : width }));
21084
21084
  const circleClass = isCircle ? 'skeleton--circle' : '';
21085
21085
  const fullHeightClass = isFullHeight ? 'skeleton--full-height' : '';
21086
21086
  const combinedClassName = `skeleton ${circleClass} ${fullHeightClass} ${className || ''}`.trim();