@spark-ui/spinner 2.0.5 → 2.1.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/CHANGELOG.md +6 -0
- package/dist/Spinner.styles.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [2.1.0](https://github.com/adevinta/spark/compare/@spark-ui/spinner@2.0.5...@spark-ui/spinner@2.1.0) (2023-08-16)
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
- **spinner:** add full size to spinner ([4ecce88](https://github.com/adevinta/spark/commit/4ecce88a544154726644fec0e612af7115a590d7))
|
11
|
+
|
6
12
|
## [2.0.5](https://github.com/adevinta/spark/compare/@spark-ui/spinner@2.0.4...@spark-ui/spinner@2.0.5) (2023-08-16)
|
7
13
|
|
8
14
|
**Note:** Version bump only for package @spark-ui/spinner
|
package/dist/Spinner.styles.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
2
2
|
export declare const spinnerStyles: (props?: ({
|
3
|
-
size?: "current" | "sm" | "md" | null | undefined;
|
3
|
+
size?: "current" | "sm" | "md" | "full" | null | undefined;
|
4
4
|
intent?: "current" | "main" | "support" | "accent" | "basic" | "success" | "alert" | "error" | "info" | "neutral" | null | undefined;
|
5
5
|
isBackgroundVisible?: boolean | null | undefined;
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),l=require("@spark-ui/visually-hidden"),u=require("@spark-ui/internal-utils"),c=require("class-variance-authority").cva(["inline-block","border-solid","rounded-full","border-md","animate-spin"],{variants:{size:{current:["u-current-font-size"],sm:["w-sz-20","h-sz-20"],md:["w-sz-28","h-sz-28"],full:["w-full","h-full"]},intent:u.makeVariants({current:["border-current"],main:["border-main"],support:["border-support"],accent:["border-accent"],basic:["border-basic"],success:["border-success"],alert:["border-alert"],error:["border-error"],info:["border-info"],neutral:["border-neutral"]}),isBackgroundVisible:{true:["border-b-neutral-container","border-l-neutral-container"],false:["border-b-transparent","border-l-transparent"]}},defaultVariants:{intent:"current",size:"current",isBackgroundVisible:!1}}),d=r.forwardRef(({className:n,size:t="current",intent:a="current",label:e,isBackgroundVisible:s,...i},o)=>r.createElement("div",{role:"status","data-spark-component":"spinner",ref:o,className:c({className:n,size:t,intent:a,isBackgroundVisible:s}),...i},e&&r.createElement(l.VisuallyHidden,null,e)));exports.Spinner=d;
|
package/dist/index.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import e, { forwardRef as
|
2
|
-
import { VisuallyHidden as
|
3
|
-
import { makeVariants as
|
1
|
+
import e, { forwardRef as l } from "react";
|
2
|
+
import { VisuallyHidden as c } from "@spark-ui/visually-hidden";
|
3
|
+
import { makeVariants as d } from "@spark-ui/internal-utils";
|
4
4
|
import { cva as u } from "class-variance-authority";
|
5
|
-
const b = u(["inline-block", "border-solid", "rounded-full", "border-md", "animate-spin"], { variants: { size: { current: ["u-current-font-size"], sm: ["w-sz-20", "h-sz-20"], md: ["w-sz-28", "h-sz-28"] }, intent:
|
5
|
+
const b = u(["inline-block", "border-solid", "rounded-full", "border-md", "animate-spin"], { variants: { size: { current: ["u-current-font-size"], sm: ["w-sz-20", "h-sz-20"], md: ["w-sz-28", "h-sz-28"], full: ["w-full", "h-full"] }, intent: d({ current: ["border-current"], main: ["border-main"], support: ["border-support"], accent: ["border-accent"], basic: ["border-basic"], success: ["border-success"], alert: ["border-alert"], error: ["border-error"], info: ["border-info"], neutral: ["border-neutral"] }), isBackgroundVisible: { true: ["border-b-neutral-container", "border-l-neutral-container"], false: ["border-b-transparent", "border-l-transparent"] } }, defaultVariants: { intent: "current", size: "current", isBackgroundVisible: !1 } }), k = l(({ className: n, size: a = "current", intent: s = "current", label: r, isBackgroundVisible: t, ...i }, o) => e.createElement("div", { role: "status", "data-spark-component": "spinner", ref: o, className: b({ className: n, size: a, intent: s, isBackgroundVisible: t }), ...i }, r && e.createElement(c, null, r)));
|
6
6
|
export {
|
7
7
|
k as Spinner
|
8
8
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spark-ui/spinner",
|
3
|
-
"version": "2.0
|
3
|
+
"version": "2.1.0",
|
4
4
|
"description": "Spinners provide a visual cue that an action is processing awaiting a course of change or a result.",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -32,5 +32,5 @@
|
|
32
32
|
},
|
33
33
|
"homepage": "https://sparkui.vercel.app",
|
34
34
|
"license": "MIT",
|
35
|
-
"gitHead": "
|
35
|
+
"gitHead": "a0ed88f6a2b17b6c0d24d0d7d0255c64a2c5656c"
|
36
36
|
}
|