@indico-data/design-system 2.12.1 → 2.14.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
@@ -18738,6 +18738,15 @@ const Form = (_a) => {
18738
18738
  return (jsxRuntime.jsx("form", Object.assign({ onSubmit: handleSubmit, action: action, method: method, target: target, autoComplete: autocomplete, noValidate: noValidate, encType: enctype, rel: rel }, rest, { children: children })));
18739
18739
  };
18740
18740
 
18741
+ const Skeleton = (_a) => {
18742
+ var { className, height, width, isCircle, isFullHeight } = _a, rest = __rest$1(_a, ["className", "height", "width", "isCircle", "isFullHeight"]);
18743
+ const dynamicStyle = Object.assign(Object.assign({}, (height && { height: `${height}px` })), (width && { width: `${width}px` }));
18744
+ const circleClass = isCircle ? 'skeleton--circle' : '';
18745
+ const fullHeightClass = isFullHeight ? 'skeleton--full-height' : '';
18746
+ const combinedClassName = `skeleton ${circleClass} ${fullHeightClass} ${className || ''}`.trim();
18747
+ return jsxRuntime.jsx("div", Object.assign({ className: combinedClassName, style: dynamicStyle }, rest));
18748
+ };
18749
+
18741
18750
  const StyledAccordion = styled__default.default.details `
18742
18751
  summary {
18743
18752
  display: inherit;
@@ -41612,6 +41621,7 @@ exports.Select = Select;
41612
41621
  exports.SelectInput = Select$1;
41613
41622
  exports.Shrug = Shrug;
41614
41623
  exports.SingleCombobox = SingleCombobox;
41624
+ exports.Skeleton = Skeleton;
41615
41625
  exports.TYPOGRAPHY = typography;
41616
41626
  exports.Table = Table$1;
41617
41627
  exports.TextInput = TextInput;