@indico-data/design-system 2.36.3 → 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.css +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/src/components/skeleton/Skeleton.d.ts +2 -2
- package/lib/src/components/skeleton/Skeleton.stories.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/floatUI/styles/FloatUI.scss +1 -1
- package/src/components/skeleton/Skeleton.stories.tsx +24 -4
- package/src/components/skeleton/Skeleton.tsx +4 -4
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();
|