// ../src/helpers/formatClassString.ts
var formatClassString = (classesArray) => {
  return classesArray.filter((x) => !!x).join(" ");
};

// ../src/components/spinner/spinner.tsx
import { jsx } from "preact/jsx-runtime";
var Spinner = ({ variant = "primary", size = "large", forcePx, classNames, attributes }) => {
  const componentClassName = "ds-spinner";
  const classes = formatClassString([
    `${componentClassName}`,
    `${componentClassName}--${variant}`,
    `${componentClassName}--${size}`,
    forcePx && "ds-force-px",
    classNames
  ]);
  return /* @__PURE__ */ jsx("span", { className: classes, ...attributes, children: /* @__PURE__ */ jsx("span", { className: `${componentClassName}__inner` }) });
};
var spinner_default = Spinner;
export {
  Spinner,
  spinner_default as default
};
//# sourceMappingURL=spinner.js.map
