@spark-ui/button 1.3.9 → 1.3.11
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 +8 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/variants/contrast.d.ts +29 -29
- package/dist/variants/filled.d.ts +29 -29
- package/dist/variants/ghost.d.ts +29 -29
- package/dist/variants/index.d.ts +0 -1
- package/dist/variants/outlined.d.ts +29 -29
- package/dist/variants/tinted.d.ts +29 -29
- package/package.json +4 -4
- package/dist/variants/default.d.ts +0 -6
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,14 @@
|
|
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
|
+
## [1.3.11](https://github.com/adevinta/spark/compare/@spark-ui/button@1.3.10...@spark-ui/button@1.3.11) (2023-04-06)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @spark-ui/button
|
9
|
+
|
10
|
+
## [1.3.10](https://github.com/adevinta/spark/compare/@spark-ui/button@1.3.9...@spark-ui/button@1.3.10) (2023-04-05)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @spark-ui/button
|
13
|
+
|
6
14
|
## [1.3.9](https://github.com/adevinta/spark/compare/@spark-ui/button@1.3.8...@spark-ui/button@1.3.9) (2023-04-05)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @spark-ui/button
|
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@spark-ui/slot"),r=require("react"),g=require("class-variance-authority"),e=require("@spark-ui/internal-utils"),v=[{intent:"primary",design:"filled",class:e.tw(["bg-primary","text-on-primary","enabled:hover:bg-primary-hovered","enabled:active:bg-primary-hovered","focus-visible:bg-primary-focused"])},{intent:"secondary",design:"filled",class:e.tw(["bg-secondary","text-on-secondary","enabled:hover:bg-secondary-hovered","enabled:active:bg-secondary-hovered","focus-visible:bg-secondary-focused"])},{intent:"success",design:"filled",class:e.tw(["bg-success","text-on-success","enabled:hover:bg-success-hovered","enabled:active:bg-success-hovered","focus-visible:bg-success-focused"])},{intent:"alert",design:"filled",class:e.tw(["bg-alert","text-on-alert","enabled:hover:bg-alert-hovered","enabled:active:bg-alert-hovered","focus-visible:bg-alert-focused"])},{intent:"danger",design:"filled",class:e.tw(["
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@spark-ui/slot"),r=require("react"),g=require("class-variance-authority"),e=require("@spark-ui/internal-utils"),v=[{intent:"primary",design:"filled",class:e.tw(["bg-primary","text-on-primary","enabled:hover:bg-primary-hovered","enabled:active:bg-primary-hovered","focus-visible:bg-primary-focused"])},{intent:"secondary",design:"filled",class:e.tw(["bg-secondary","text-on-secondary","enabled:hover:bg-secondary-hovered","enabled:active:bg-secondary-hovered","focus-visible:bg-secondary-focused"])},{intent:"success",design:"filled",class:e.tw(["bg-success","text-on-success","enabled:hover:bg-success-hovered","enabled:active:bg-success-hovered","focus-visible:bg-success-focused"])},{intent:"alert",design:"filled",class:e.tw(["bg-alert","text-on-alert","enabled:hover:bg-alert-hovered","enabled:active:bg-alert-hovered","focus-visible:bg-alert-focused"])},{intent:"danger",design:"filled",class:e.tw(["text-on-error bg-error","enabled:hover:bg-error-hovered enabled:active:bg-error-hovered","focus-visible:bg-error-focused"])},{intent:"neutral",design:"filled",class:e.tw(["bg-neutral","text-on-neutral","enabled:hover:bg-neutral-hovered","enabled:active:bg-neutral-hovered","focus-visible:bg-neutral-focused"])},{intent:"surface",design:"filled",class:e.tw(["bg-surface","text-on-surface","enabled:hover:bg-surface-hovered","enabled:active:bg-surface-hovered","focus-visible:bg-surface-focused"])}],f=[{intent:"primary",design:"ghost",class:e.tw(["text-primary","enabled:hover:bg-primary-container-hovered","enabled:active:bg-primary-container-hovered","focus-visible:bg-primary-container-focused"])},{intent:"secondary",design:"ghost",class:e.tw(["text-secondary","enabled:hover:bg-secondary-container-hovered","enabled:active:bg-secondary-container-hovered","focus-visible:bg-secondary-container-focused"])},{intent:"success",design:"ghost",class:e.tw(["text-success","enabled:hover:bg-success-container-hovered","enabled:active:bg-success-container-hovered","focus-visible:bg-success-container-focused"])},{intent:"alert",design:"ghost",class:e.tw(["text-alert","enabled:hover:bg-alert-container-hovered","enabled:active:bg-alert-container-hovered","focus-visible:bg-alert-container-focused"])},{intent:"danger",design:"ghost",class:e.tw(["text-error","enabled:hover:bg-error-container-hovered","enabled:active:bg-error-container-hovered","focus-visible:bg-error-container-focused"])},{intent:"neutral",design:"ghost",class:e.tw(["text-neutral","enabled:hover:bg-neutral-container-hovered","enabled:active:bg-neutral-container-hovered","focus-visible:bg-neutral-container-focused"])},{intent:"surface",design:"ghost",class:e.tw(["text-on-surface","enabled:hover:bg-surface-hovered","enabled:active:bg-surface-hovered","focus-visible:bg-surface-focused"])}],h=[{intent:"primary",design:"outlined",class:e.tw(["enabled:hover:bg-primary-container-hovered","enabled:active:bg-primary-container-hovered","focus-visible:bg-primary-container-focused","text-primary"])},{intent:"secondary",design:"outlined",class:e.tw(["enabled:hover:bg-secondary-container-hovered","enabled:active:bg-secondary-container-hovered","focus-visible:bg-secondary-container-focused","text-secondary"])},{intent:"success",design:"outlined",class:e.tw(["enabled:hover:bg-success-container-hovered","enabled:active:bg-success-container-hovered","focus-visible:bg-success-container-focused","text-success"])},{intent:"alert",design:"outlined",class:e.tw(["enabled:hover:bg-alert-container-hovered","enabled:active:bg-alert-container-hovered","focus-visible:bg-alert-container-focused","text-alert"])},{intent:"danger",design:"outlined",class:e.tw(["enabled:hover:bg-error-container-hovered","enabled:active:bg-error-container-hovered","focus-visible:bg-error-container-focused","text-error"])},{intent:"neutral",design:"outlined",class:e.tw(["enabled:hover:bg-neutral-container-hovered","enabled:active:bg-neutral-container-hovered","focus-visible:bg-neutral-container-focused","text-neutral"])},{intent:"surface",design:"outlined",class:e.tw(["enabled:hover:bg-surface-hovered","enabled:active:bg-surface-hovered","focus-visible:bg-surface-focused","text-surface"])}],y=[{intent:"primary",design:"tinted",class:e.tw(["bg-primary-container","text-on-primary-container","enabled:hover:bg-primary-container-hovered","enabled:active:bg-primary-container-hovered","focus-visible:bg-primary-container-focused"])},{intent:"secondary",design:"tinted",class:e.tw(["bg-secondary-container","text-on-secondary-container","enabled:hover:bg-secondary-container-hovered","enabled:active:bg-secondary-container-hovered","focus-visible:bg-secondary-container-focused"])},{intent:"success",design:"tinted",class:e.tw(["bg-success-container","text-on-success-container","enabled:hover:bg-success-container-hovered","enabled:active:bg-success-container-hovered","focus-visible:bg-success-container-focused"])},{intent:"alert",design:"tinted",class:e.tw(["bg-alert-container","text-on-alert-container","enabled:hover:bg-alert-container-hovered","enabled:active:bg-alert-container-hovered","focus-visible:bg-alert-container-focused"])},{intent:"danger",design:"tinted",class:e.tw(["bg-error-container","text-on-error-container","enabled:hover:bg-error-container-hovered","enabled:active:bg-error-container-hovered","focus-visible:bg-error-container-focused"])},{intent:"neutral",design:"tinted",class:e.tw(["bg-neutral-container","text-on-neutral-container","enabled:hover:bg-neutral-container-hovered","enabled:active:bg-neutral-container-hovered","focus-visible:bg-neutral-container-focused"])},{intent:"surface",design:"tinted",class:e.tw(["bg-surface","text-on-surface","enabled:hover:bg-surface-hovered","enabled:active:bg-surface-hovered","focus-visible:bg-surface-focused"])}],p=[{intent:"primary",design:"contrast",class:e.tw(["text-primary","enabled:hover:bg-primary-container-hovered","enabled:active:bg-primary-container-hovered","focus-visible:bg-primary-container-focused"])},{intent:"secondary",design:"contrast",class:e.tw(["text-secondary","enabled:hover:bg-secondary-container-hovered","enabled:active:bg-secondary-container-hovered","focus-visible:bg-secondary-container-focused"])},{intent:"success",design:"contrast",class:e.tw(["text-success","enabled:hover:bg-success-container-hovered","enabled:active:bg-success-container-hovered","focus-visible:bg-success-container-focused"])},{intent:"alert",design:"contrast",class:e.tw(["text-alert","enabled:hover:bg-alert-container-hovered","enabled:active:bg-alert-container-hovered","focus-visible:bg-alert-container-focused"])},{intent:"danger",design:"contrast",class:e.tw(["text-error","enabled:hover:bg-error-container-hovered","enabled:active:bg-error-container-hovered","focus-visible:bg-error-container-focused"])},{intent:"neutral",design:"contrast",class:e.tw(["text-neutral","enabled:hover:bg-neutral-container-hovered","enabled:active:bg-neutral-container-hovered","focus-visible:bg-neutral-container-focused"])},{intent:"surface",design:"contrast",class:e.tw(["text-surface","enabled:hover:bg-surface-hovered","enabled:active:bg-surface-hovered","focus-visible:bg-surface-focused"])}],m=g.cva(["gap-md box-border flex items-center justify-center whitespace-nowrap","text-body-1 font-bold","focus-visible:ring-outline-high ring-inset focus-visible:outline-none focus-visible:ring-2"],{variants:{design:{filled:[],outlined:["bg-transparent","ring-2","ring-current"],tinted:[],ghost:[],contrast:["bg-surface"]},intent:{primary:[],secondary:[],success:[],alert:[],danger:[],neutral:[],surface:[]},size:{sm:["py-sm px-lg"],md:["py-md px-lg"],lg:["p-lg"]},disabled:{true:["cursor-not-allowed","opacity-dim-3"]},shape:{rounded:["rounded-lg"],square:["rounded-none"],pill:["rounded-full"]}},compoundVariants:[...v,...h,...y,...f,...p],defaultVariants:{design:"filled",intent:"primary",size:"md",shape:"rounded"}}),x=r.forwardRef(({design:t="filled",disabled:n=!1,intent:a="primary",shape:s="rounded",size:o="md",asChild:c,className:i,...d},l)=>{const b=c?u.Slot:"button";return r.createElement(b,{ref:l,className:m({className:i,design:t,disabled:n,intent:a,shape:s,size:o}),disabled:!!n,...d})});exports.Button=x;
|
package/dist/index.mjs
CHANGED
@@ -2,7 +2,7 @@ import { Slot as g } from "@spark-ui/slot";
|
|
2
2
|
import r from "react";
|
3
3
|
import { cva as u } from "class-variance-authority";
|
4
4
|
import { tw as e } from "@spark-ui/internal-utils";
|
5
|
-
const v = [{ intent: "primary", design: "filled", class: e(["bg-primary", "text-on-primary", "enabled:hover:bg-primary-hovered", "enabled:active:bg-primary-hovered", "focus-visible:bg-primary-focused"]) }, { intent: "secondary", design: "filled", class: e(["bg-secondary", "text-on-secondary", "enabled:hover:bg-secondary-hovered", "enabled:active:bg-secondary-hovered", "focus-visible:bg-secondary-focused"]) }, { intent: "success", design: "filled", class: e(["bg-success", "text-on-success", "enabled:hover:bg-success-hovered", "enabled:active:bg-success-hovered", "focus-visible:bg-success-focused"]) }, { intent: "alert", design: "filled", class: e(["bg-alert", "text-on-alert", "enabled:hover:bg-alert-hovered", "enabled:active:bg-alert-hovered", "focus-visible:bg-alert-focused"]) }, { intent: "danger", design: "filled", class: e(["
|
5
|
+
const v = [{ intent: "primary", design: "filled", class: e(["bg-primary", "text-on-primary", "enabled:hover:bg-primary-hovered", "enabled:active:bg-primary-hovered", "focus-visible:bg-primary-focused"]) }, { intent: "secondary", design: "filled", class: e(["bg-secondary", "text-on-secondary", "enabled:hover:bg-secondary-hovered", "enabled:active:bg-secondary-hovered", "focus-visible:bg-secondary-focused"]) }, { intent: "success", design: "filled", class: e(["bg-success", "text-on-success", "enabled:hover:bg-success-hovered", "enabled:active:bg-success-hovered", "focus-visible:bg-success-focused"]) }, { intent: "alert", design: "filled", class: e(["bg-alert", "text-on-alert", "enabled:hover:bg-alert-hovered", "enabled:active:bg-alert-hovered", "focus-visible:bg-alert-focused"]) }, { intent: "danger", design: "filled", class: e(["text-on-error bg-error", "enabled:hover:bg-error-hovered enabled:active:bg-error-hovered", "focus-visible:bg-error-focused"]) }, { intent: "neutral", design: "filled", class: e(["bg-neutral", "text-on-neutral", "enabled:hover:bg-neutral-hovered", "enabled:active:bg-neutral-hovered", "focus-visible:bg-neutral-focused"]) }, { intent: "surface", design: "filled", class: e(["bg-surface", "text-on-surface", "enabled:hover:bg-surface-hovered", "enabled:active:bg-surface-hovered", "focus-visible:bg-surface-focused"]) }], f = [{ intent: "primary", design: "ghost", class: e(["text-primary", "enabled:hover:bg-primary-container-hovered", "enabled:active:bg-primary-container-hovered", "focus-visible:bg-primary-container-focused"]) }, { intent: "secondary", design: "ghost", class: e(["text-secondary", "enabled:hover:bg-secondary-container-hovered", "enabled:active:bg-secondary-container-hovered", "focus-visible:bg-secondary-container-focused"]) }, { intent: "success", design: "ghost", class: e(["text-success", "enabled:hover:bg-success-container-hovered", "enabled:active:bg-success-container-hovered", "focus-visible:bg-success-container-focused"]) }, { intent: "alert", design: "ghost", class: e(["text-alert", "enabled:hover:bg-alert-container-hovered", "enabled:active:bg-alert-container-hovered", "focus-visible:bg-alert-container-focused"]) }, { intent: "danger", design: "ghost", class: e(["text-error", "enabled:hover:bg-error-container-hovered", "enabled:active:bg-error-container-hovered", "focus-visible:bg-error-container-focused"]) }, { intent: "neutral", design: "ghost", class: e(["text-neutral", "enabled:hover:bg-neutral-container-hovered", "enabled:active:bg-neutral-container-hovered", "focus-visible:bg-neutral-container-focused"]) }, { intent: "surface", design: "ghost", class: e(["text-on-surface", "enabled:hover:bg-surface-hovered", "enabled:active:bg-surface-hovered", "focus-visible:bg-surface-focused"]) }], h = u(["gap-md box-border flex items-center justify-center whitespace-nowrap", "text-body-1 font-bold", "focus-visible:ring-outline-high ring-inset focus-visible:outline-none focus-visible:ring-2"], { variants: { design: { filled: [], outlined: ["bg-transparent", "ring-2", "ring-current"], tinted: [], ghost: [], contrast: ["bg-surface"] }, intent: { primary: [], secondary: [], success: [], alert: [], danger: [], neutral: [], surface: [] }, size: { sm: ["py-sm px-lg"], md: ["py-md px-lg"], lg: ["p-lg"] }, disabled: { true: ["cursor-not-allowed", "opacity-dim-3"] }, shape: { rounded: ["rounded-lg"], square: ["rounded-none"], pill: ["rounded-full"] } }, compoundVariants: [...v, { intent: "primary", design: "outlined", class: e(["enabled:hover:bg-primary-container-hovered", "enabled:active:bg-primary-container-hovered", "focus-visible:bg-primary-container-focused", "text-primary"]) }, { intent: "secondary", design: "outlined", class: e(["enabled:hover:bg-secondary-container-hovered", "enabled:active:bg-secondary-container-hovered", "focus-visible:bg-secondary-container-focused", "text-secondary"]) }, { intent: "success", design: "outlined", class: e(["enabled:hover:bg-success-container-hovered", "enabled:active:bg-success-container-hovered", "focus-visible:bg-success-container-focused", "text-success"]) }, { intent: "alert", design: "outlined", class: e(["enabled:hover:bg-alert-container-hovered", "enabled:active:bg-alert-container-hovered", "focus-visible:bg-alert-container-focused", "text-alert"]) }, { intent: "danger", design: "outlined", class: e(["enabled:hover:bg-error-container-hovered", "enabled:active:bg-error-container-hovered", "focus-visible:bg-error-container-focused", "text-error"]) }, { intent: "neutral", design: "outlined", class: e(["enabled:hover:bg-neutral-container-hovered", "enabled:active:bg-neutral-container-hovered", "focus-visible:bg-neutral-container-focused", "text-neutral"]) }, { intent: "surface", design: "outlined", class: e(["enabled:hover:bg-surface-hovered", "enabled:active:bg-surface-hovered", "focus-visible:bg-surface-focused", "text-surface"]) }, { intent: "primary", design: "tinted", class: e(["bg-primary-container", "text-on-primary-container", "enabled:hover:bg-primary-container-hovered", "enabled:active:bg-primary-container-hovered", "focus-visible:bg-primary-container-focused"]) }, { intent: "secondary", design: "tinted", class: e(["bg-secondary-container", "text-on-secondary-container", "enabled:hover:bg-secondary-container-hovered", "enabled:active:bg-secondary-container-hovered", "focus-visible:bg-secondary-container-focused"]) }, { intent: "success", design: "tinted", class: e(["bg-success-container", "text-on-success-container", "enabled:hover:bg-success-container-hovered", "enabled:active:bg-success-container-hovered", "focus-visible:bg-success-container-focused"]) }, { intent: "alert", design: "tinted", class: e(["bg-alert-container", "text-on-alert-container", "enabled:hover:bg-alert-container-hovered", "enabled:active:bg-alert-container-hovered", "focus-visible:bg-alert-container-focused"]) }, { intent: "danger", design: "tinted", class: e(["bg-error-container", "text-on-error-container", "enabled:hover:bg-error-container-hovered", "enabled:active:bg-error-container-hovered", "focus-visible:bg-error-container-focused"]) }, { intent: "neutral", design: "tinted", class: e(["bg-neutral-container", "text-on-neutral-container", "enabled:hover:bg-neutral-container-hovered", "enabled:active:bg-neutral-container-hovered", "focus-visible:bg-neutral-container-focused"]) }, { intent: "surface", design: "tinted", class: e(["bg-surface", "text-on-surface", "enabled:hover:bg-surface-hovered", "enabled:active:bg-surface-hovered", "focus-visible:bg-surface-focused"]) }, ...f, { intent: "primary", design: "contrast", class: e(["text-primary", "enabled:hover:bg-primary-container-hovered", "enabled:active:bg-primary-container-hovered", "focus-visible:bg-primary-container-focused"]) }, { intent: "secondary", design: "contrast", class: e(["text-secondary", "enabled:hover:bg-secondary-container-hovered", "enabled:active:bg-secondary-container-hovered", "focus-visible:bg-secondary-container-focused"]) }, { intent: "success", design: "contrast", class: e(["text-success", "enabled:hover:bg-success-container-hovered", "enabled:active:bg-success-container-hovered", "focus-visible:bg-success-container-focused"]) }, { intent: "alert", design: "contrast", class: e(["text-alert", "enabled:hover:bg-alert-container-hovered", "enabled:active:bg-alert-container-hovered", "focus-visible:bg-alert-container-focused"]) }, { intent: "danger", design: "contrast", class: e(["text-error", "enabled:hover:bg-error-container-hovered", "enabled:active:bg-error-container-hovered", "focus-visible:bg-error-container-focused"]) }, { intent: "neutral", design: "contrast", class: e(["text-neutral", "enabled:hover:bg-neutral-container-hovered", "enabled:active:bg-neutral-container-hovered", "focus-visible:bg-neutral-container-focused"]) }, { intent: "surface", design: "contrast", class: e(["text-surface", "enabled:hover:bg-surface-hovered", "enabled:active:bg-surface-hovered", "focus-visible:bg-surface-focused"]) }], defaultVariants: { design: "filled", intent: "primary", size: "md", shape: "rounded" } }), w = r.forwardRef(({ design: a = "filled", disabled: n = !1, intent: s = "primary", shape: t = "rounded", size: o = "md", asChild: c, className: i, ...d }, l) => {
|
6
6
|
const b = c ? g : "button";
|
7
7
|
return r.createElement(b, { ref: l, className: h({ className: i, design: a, disabled: n, intent: s, shape: t, size: o }), disabled: !!n, ...d });
|
8
8
|
});
|
@@ -1,29 +1,29 @@
|
|
1
|
-
export declare const contrastVariants:
|
2
|
-
intent: "primary";
|
3
|
-
design: "contrast";
|
4
|
-
class: string[];
|
5
|
-
}
|
6
|
-
intent: "secondary";
|
7
|
-
design: "contrast";
|
8
|
-
class: string[];
|
9
|
-
}
|
10
|
-
intent: "success";
|
11
|
-
design: "contrast";
|
12
|
-
class: string[];
|
13
|
-
}
|
14
|
-
intent: "alert";
|
15
|
-
design: "contrast";
|
16
|
-
class: string[];
|
17
|
-
}
|
18
|
-
intent: "danger";
|
19
|
-
design: "contrast";
|
20
|
-
class: string[];
|
21
|
-
}
|
22
|
-
intent: "neutral";
|
23
|
-
design: "contrast";
|
24
|
-
class: string[];
|
25
|
-
}
|
26
|
-
intent: "surface";
|
27
|
-
design: "contrast";
|
28
|
-
class: string[];
|
29
|
-
}
|
1
|
+
export declare const contrastVariants: readonly [{
|
2
|
+
readonly intent: "primary";
|
3
|
+
readonly design: "contrast";
|
4
|
+
readonly class: string[];
|
5
|
+
}, {
|
6
|
+
readonly intent: "secondary";
|
7
|
+
readonly design: "contrast";
|
8
|
+
readonly class: string[];
|
9
|
+
}, {
|
10
|
+
readonly intent: "success";
|
11
|
+
readonly design: "contrast";
|
12
|
+
readonly class: string[];
|
13
|
+
}, {
|
14
|
+
readonly intent: "alert";
|
15
|
+
readonly design: "contrast";
|
16
|
+
readonly class: string[];
|
17
|
+
}, {
|
18
|
+
readonly intent: "danger";
|
19
|
+
readonly design: "contrast";
|
20
|
+
readonly class: string[];
|
21
|
+
}, {
|
22
|
+
readonly intent: "neutral";
|
23
|
+
readonly design: "contrast";
|
24
|
+
readonly class: string[];
|
25
|
+
}, {
|
26
|
+
readonly intent: "surface";
|
27
|
+
readonly design: "contrast";
|
28
|
+
readonly class: string[];
|
29
|
+
}];
|
@@ -1,29 +1,29 @@
|
|
1
|
-
export declare const filledVariants:
|
2
|
-
intent: "primary";
|
3
|
-
design: "filled";
|
4
|
-
class: string[];
|
5
|
-
}
|
6
|
-
intent: "secondary";
|
7
|
-
design: "filled";
|
8
|
-
class: string[];
|
9
|
-
}
|
10
|
-
intent: "success";
|
11
|
-
design: "filled";
|
12
|
-
class: string[];
|
13
|
-
}
|
14
|
-
intent: "alert";
|
15
|
-
design: "filled";
|
16
|
-
class: string[];
|
17
|
-
}
|
18
|
-
intent: "danger";
|
19
|
-
design: "filled";
|
20
|
-
class: string[];
|
21
|
-
}
|
22
|
-
intent: "neutral";
|
23
|
-
design: "filled";
|
24
|
-
class: string[];
|
25
|
-
}
|
26
|
-
intent: "surface";
|
27
|
-
design: "filled";
|
28
|
-
class: string[];
|
29
|
-
}
|
1
|
+
export declare const filledVariants: readonly [{
|
2
|
+
readonly intent: "primary";
|
3
|
+
readonly design: "filled";
|
4
|
+
readonly class: string[];
|
5
|
+
}, {
|
6
|
+
readonly intent: "secondary";
|
7
|
+
readonly design: "filled";
|
8
|
+
readonly class: string[];
|
9
|
+
}, {
|
10
|
+
readonly intent: "success";
|
11
|
+
readonly design: "filled";
|
12
|
+
readonly class: string[];
|
13
|
+
}, {
|
14
|
+
readonly intent: "alert";
|
15
|
+
readonly design: "filled";
|
16
|
+
readonly class: string[];
|
17
|
+
}, {
|
18
|
+
readonly intent: "danger";
|
19
|
+
readonly design: "filled";
|
20
|
+
readonly class: string[];
|
21
|
+
}, {
|
22
|
+
readonly intent: "neutral";
|
23
|
+
readonly design: "filled";
|
24
|
+
readonly class: string[];
|
25
|
+
}, {
|
26
|
+
readonly intent: "surface";
|
27
|
+
readonly design: "filled";
|
28
|
+
readonly class: string[];
|
29
|
+
}];
|
package/dist/variants/ghost.d.ts
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
export declare const ghostVariants:
|
2
|
-
intent: "primary";
|
3
|
-
design: "ghost";
|
4
|
-
class: string[];
|
5
|
-
}
|
6
|
-
intent: "secondary";
|
7
|
-
design: "ghost";
|
8
|
-
class: string[];
|
9
|
-
}
|
10
|
-
intent: "success";
|
11
|
-
design: "ghost";
|
12
|
-
class: string[];
|
13
|
-
}
|
14
|
-
intent: "alert";
|
15
|
-
design: "ghost";
|
16
|
-
class: string[];
|
17
|
-
}
|
18
|
-
intent: "danger";
|
19
|
-
design: "ghost";
|
20
|
-
class: string[];
|
21
|
-
}
|
22
|
-
intent: "neutral";
|
23
|
-
design: "ghost";
|
24
|
-
class: string[];
|
25
|
-
}
|
26
|
-
intent: "surface";
|
27
|
-
design: "ghost";
|
28
|
-
class: string[];
|
29
|
-
}
|
1
|
+
export declare const ghostVariants: readonly [{
|
2
|
+
readonly intent: "primary";
|
3
|
+
readonly design: "ghost";
|
4
|
+
readonly class: string[];
|
5
|
+
}, {
|
6
|
+
readonly intent: "secondary";
|
7
|
+
readonly design: "ghost";
|
8
|
+
readonly class: string[];
|
9
|
+
}, {
|
10
|
+
readonly intent: "success";
|
11
|
+
readonly design: "ghost";
|
12
|
+
readonly class: string[];
|
13
|
+
}, {
|
14
|
+
readonly intent: "alert";
|
15
|
+
readonly design: "ghost";
|
16
|
+
readonly class: string[];
|
17
|
+
}, {
|
18
|
+
readonly intent: "danger";
|
19
|
+
readonly design: "ghost";
|
20
|
+
readonly class: string[];
|
21
|
+
}, {
|
22
|
+
readonly intent: "neutral";
|
23
|
+
readonly design: "ghost";
|
24
|
+
readonly class: string[];
|
25
|
+
}, {
|
26
|
+
readonly intent: "surface";
|
27
|
+
readonly design: "ghost";
|
28
|
+
readonly class: string[];
|
29
|
+
}];
|
package/dist/variants/index.d.ts
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
export declare const outlinedVariants:
|
2
|
-
intent: "primary";
|
3
|
-
design: "outlined";
|
4
|
-
class: string[];
|
5
|
-
}
|
6
|
-
intent: "secondary";
|
7
|
-
design: "outlined";
|
8
|
-
class: string[];
|
9
|
-
}
|
10
|
-
intent: "success";
|
11
|
-
design: "outlined";
|
12
|
-
class: string[];
|
13
|
-
}
|
14
|
-
intent: "alert";
|
15
|
-
design: "outlined";
|
16
|
-
class: string[];
|
17
|
-
}
|
18
|
-
intent: "danger";
|
19
|
-
design: "outlined";
|
20
|
-
class: string[];
|
21
|
-
}
|
22
|
-
intent: "neutral";
|
23
|
-
design: "outlined";
|
24
|
-
class: string[];
|
25
|
-
}
|
26
|
-
intent: "surface";
|
27
|
-
design: "outlined";
|
28
|
-
class: string[];
|
29
|
-
}
|
1
|
+
export declare const outlinedVariants: readonly [{
|
2
|
+
readonly intent: "primary";
|
3
|
+
readonly design: "outlined";
|
4
|
+
readonly class: string[];
|
5
|
+
}, {
|
6
|
+
readonly intent: "secondary";
|
7
|
+
readonly design: "outlined";
|
8
|
+
readonly class: string[];
|
9
|
+
}, {
|
10
|
+
readonly intent: "success";
|
11
|
+
readonly design: "outlined";
|
12
|
+
readonly class: string[];
|
13
|
+
}, {
|
14
|
+
readonly intent: "alert";
|
15
|
+
readonly design: "outlined";
|
16
|
+
readonly class: string[];
|
17
|
+
}, {
|
18
|
+
readonly intent: "danger";
|
19
|
+
readonly design: "outlined";
|
20
|
+
readonly class: string[];
|
21
|
+
}, {
|
22
|
+
readonly intent: "neutral";
|
23
|
+
readonly design: "outlined";
|
24
|
+
readonly class: string[];
|
25
|
+
}, {
|
26
|
+
readonly intent: "surface";
|
27
|
+
readonly design: "outlined";
|
28
|
+
readonly class: string[];
|
29
|
+
}];
|
@@ -1,29 +1,29 @@
|
|
1
|
-
export declare const tintedVariants:
|
2
|
-
intent: "primary";
|
3
|
-
design: "tinted";
|
4
|
-
class: string[];
|
5
|
-
}
|
6
|
-
intent: "secondary";
|
7
|
-
design: "tinted";
|
8
|
-
class: string[];
|
9
|
-
}
|
10
|
-
intent: "success";
|
11
|
-
design: "tinted";
|
12
|
-
class: string[];
|
13
|
-
}
|
14
|
-
intent: "alert";
|
15
|
-
design: "tinted";
|
16
|
-
class: string[];
|
17
|
-
}
|
18
|
-
intent: "danger";
|
19
|
-
design: "tinted";
|
20
|
-
class: string[];
|
21
|
-
}
|
22
|
-
intent: "neutral";
|
23
|
-
design: "tinted";
|
24
|
-
class: string[];
|
25
|
-
}
|
26
|
-
intent: "surface";
|
27
|
-
design: "tinted";
|
28
|
-
class: string[];
|
29
|
-
}
|
1
|
+
export declare const tintedVariants: readonly [{
|
2
|
+
readonly intent: "primary";
|
3
|
+
readonly design: "tinted";
|
4
|
+
readonly class: string[];
|
5
|
+
}, {
|
6
|
+
readonly intent: "secondary";
|
7
|
+
readonly design: "tinted";
|
8
|
+
readonly class: string[];
|
9
|
+
}, {
|
10
|
+
readonly intent: "success";
|
11
|
+
readonly design: "tinted";
|
12
|
+
readonly class: string[];
|
13
|
+
}, {
|
14
|
+
readonly intent: "alert";
|
15
|
+
readonly design: "tinted";
|
16
|
+
readonly class: string[];
|
17
|
+
}, {
|
18
|
+
readonly intent: "danger";
|
19
|
+
readonly design: "tinted";
|
20
|
+
readonly class: string[];
|
21
|
+
}, {
|
22
|
+
readonly intent: "neutral";
|
23
|
+
readonly design: "tinted";
|
24
|
+
readonly class: string[];
|
25
|
+
}, {
|
26
|
+
readonly intent: "surface";
|
27
|
+
readonly design: "tinted";
|
28
|
+
readonly class: string[];
|
29
|
+
}];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spark-ui/button",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.11",
|
4
4
|
"description": "Button component is used to trigger an action or event, such as submitting a form, opening a Dialog, canceling an action, or performing a delete operation.",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -12,9 +12,9 @@
|
|
12
12
|
"build": "vite build"
|
13
13
|
},
|
14
14
|
"dependencies": {
|
15
|
-
"@spark-ui/internal-utils": "^1.
|
16
|
-
"@spark-ui/slot": "^1.2.
|
15
|
+
"@spark-ui/internal-utils": "^1.4.0",
|
16
|
+
"@spark-ui/slot": "^1.2.4",
|
17
17
|
"class-variance-authority": "0.4.0"
|
18
18
|
},
|
19
|
-
"gitHead": "
|
19
|
+
"gitHead": "a5a87741408264a57672bf562f14b97a3a63582a"
|
20
20
|
}
|