@skapp/skapp-ui 1.0.0 → 1.0.1-beta.5

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.
@@ -1079,9 +1079,16 @@ const Button$1 = ({ variant = "primary", size = "md", icon, showIcon = true, ico
1079
1079
  iconPosition === "end" && iconElement));
1080
1080
  };
1081
1081
 
1082
- const Spinner = ({ size = 20 }) => {
1082
+ /**
1083
+ * A circular loading spinner with a grey track and an animated arc
1084
+ */
1085
+ const Spinner = ({ size = 20, color = "primary-accent", }) => {
1083
1086
  const spinnerSize = `${size}px`;
1084
- return (React__default.createElement("span", { className: "text-primary-accent inline-block", style: { width: spinnerSize, height: spinnerSize }, "aria-hidden": "true" },
1087
+ return (React__default.createElement("span", { className: "inline-block", style: {
1088
+ width: spinnerSize,
1089
+ height: spinnerSize,
1090
+ color: `var(--color-${color})`,
1091
+ }, "aria-hidden": "true" },
1085
1092
  React__default.createElement("svg", { className: "block", viewBox: "22 22 44 44" },
1086
1093
  React__default.createElement("g", null,
1087
1094
  React__default.createElement("animateTransform", { attributeName: "transform", type: "rotate", from: "0 44 44", to: "360 44 44", dur: "1.4s", repeatCount: "indefinite" }),