@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.css
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -1048,8 +1048,8 @@ declare const Form: ({ children, onSubmit, action, method, target, autocomplete,
|
|
|
1048
1048
|
|
|
1049
1049
|
type Props$1 = {
|
|
1050
1050
|
className?: string;
|
|
1051
|
-
height?: number;
|
|
1052
|
-
width?: number;
|
|
1051
|
+
height?: number | string;
|
|
1052
|
+
width?: number | string;
|
|
1053
1053
|
isCircle?: boolean;
|
|
1054
1054
|
isFullHeight?: boolean;
|
|
1055
1055
|
};
|
package/lib/index.esm.css
CHANGED
package/lib/index.esm.js
CHANGED
|
@@ -21055,7 +21055,7 @@ const Form = (_a) => {
|
|
|
21055
21055
|
|
|
21056
21056
|
const Skeleton = (_a) => {
|
|
21057
21057
|
var { className, height, width, isCircle, isFullHeight } = _a, rest = __rest$1(_a, ["className", "height", "width", "isCircle", "isFullHeight"]);
|
|
21058
|
-
const dynamicStyle = Object.assign(Object.assign({}, (height && { height: `${height}px` })), (width && { width: `${width}px` }));
|
|
21058
|
+
const dynamicStyle = Object.assign(Object.assign({}, (height && { height: typeof height === 'number' ? `${height}px` : height })), (width && { width: typeof width === 'number' ? `${width}px` : width }));
|
|
21059
21059
|
const circleClass = isCircle ? 'skeleton--circle' : '';
|
|
21060
21060
|
const fullHeightClass = isFullHeight ? 'skeleton--full-height' : '';
|
|
21061
21061
|
const combinedClassName = `skeleton ${circleClass} ${fullHeightClass} ${className || ''}`.trim();
|