From 00928ec561530d70d7fbd4f65d9f7baa5e337aad Mon Sep 17 00:00:00 2001 From: Henry Wilkinson Date: Tue, 24 Mar 2026 02:33:29 -0400 Subject: [PATCH 1/3] Update spinner colours & default variant --- packages/ui/src/components/spinner/spinner.module.css | 2 +- packages/ui/src/components/spinner/spinner.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/spinner/spinner.module.css b/packages/ui/src/components/spinner/spinner.module.css index 6dc1c249..600c5351 100644 --- a/packages/ui/src/components/spinner/spinner.module.css +++ b/packages/ui/src/components/spinner/spinner.module.css @@ -12,7 +12,7 @@ } .spinner-background { - @apply border-greyscale-800; + @apply border-background-sunken; @apply rounded-full; @apply absolute inset-0; } diff --git a/packages/ui/src/components/spinner/spinner.tsx b/packages/ui/src/components/spinner/spinner.tsx index 73599a6e..b06c3013 100644 --- a/packages/ui/src/components/spinner/spinner.tsx +++ b/packages/ui/src/components/spinner/spinner.tsx @@ -6,7 +6,7 @@ interface SpinnerProps { variant?: 'neutral' | 'primary' | 'success' | 'danger' | 'warning'; } -export const Spinner = ({ size = 'md', variant = 'neutral' }: SpinnerProps) => { +export const Spinner = ({ size = 'md', variant = 'primary' }: SpinnerProps) => { return (
From 986e1fa8a938e33e1b98c438d84eec626b908e6e Mon Sep 17 00:00:00 2001 From: Henry Wilkinson Date: Tue, 24 Mar 2026 02:36:23 -0400 Subject: [PATCH 2/3] Update the spinner docs page Co-Authored-By: Claude --- .../demo/src/content/components/spinner.mdx | 105 +++++++++++------- 1 file changed, 62 insertions(+), 43 deletions(-) diff --git a/packages/demo/src/content/components/spinner.mdx b/packages/demo/src/content/components/spinner.mdx index c2f7f991..0b1a8519 100644 --- a/packages/demo/src/content/components/spinner.mdx +++ b/packages/demo/src/content/components/spinner.mdx @@ -5,50 +5,69 @@ heading: "Spinner" import { Spinner } from "@eqtylab/equality"; -## Size Variants +## Overview -### Extra Small (xs) +The Spinner component provides a visual loading indicator to communicate that content or an action is in progress. Use it when fetching data, submitting forms, or during any asynchronous operation where the user should wait. - +## Usage -### Small (sm) +Import the component: - - -### Medium (md) - Default - - - -### Large (lg) - - - -### Extra Large (xl) - - - -## Color Variants - -This component supports color variants using either the brand primary color or status options. Available variants are `primary` (brand primary color), `success`, `danger`, and `warning`. Use these to visually distinguish loading spinners according to your design needs. - -The special `neutral` variant adapts the spinner to use the primary text color, automatically switching between light and dark themes according to your app's current appearance mode. - -### Neutral - - - -### Primary - - - -### Success - - - -### Danger - - - -### Warning - - +```ts +import { Spinner } from "@eqtylab/equality"; +``` + +Basic usage with default properties: + +```tsx + +``` + +## Variants + +### Size + +The Spinner supports five size variants to fit different contexts, from inline indicators to full-page loading states. + +
+ + + + + +
+ +```tsx + + + + + +``` + +### Color + +The Spinner supports color variants using either the brand primary color or status options. + +
+ + + + + +
+ +```tsx + + + + + +``` + +## Props + +| Name | Description | Type | Default | Required | +| --------- | ------------------------------------- | ---------------------------------------------------- | --------- | -------- | +| `size` | Controls the size of the spinner | `xs`, `sm`, `md`, `lg`, `xl` | `md` | ❌ | +| `variant` | Sets the color variant of the spinner | `neutral`, `primary`, `success`, `danger`, `warning` | `primary` | ❌ | From e1cd38f506b57eb587e6717053ab7ce681d577ab Mon Sep 17 00:00:00 2001 From: Henry Wilkinson Date: Tue, 24 Mar 2026 12:18:01 -0400 Subject: [PATCH 3/3] bump version --- packages/ui/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ui/package.json b/packages/ui/package.json index 117632c3..754ab0c3 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -2,7 +2,7 @@ "name": "@eqtylab/equality", "description": "EQTYLab's component and token-based design system", "homepage": "https://equality.eqtylab.io/", - "version": "1.3.0", + "version": "1.4.0", "license": "Apache-2.0", "keywords": [ "component library", @@ -16,6 +16,7 @@ "types": "./dist/index.d.ts", "exports": { ".": { + "development": "./src/index.ts", "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs"